Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Python: copying a list the right way.
If you want to be truly explicit, why not use the built in copy module?
eg:
from copy import copy b = copy(a) #or deepcopy(), depending on your needs
There are no comments on this comment yet.
If you want to be truly explicit, why not use the built in copy module?
eg:
*edit: I should note that the docs for copy suggest using the slice operator.