Comment on Python: copying a list the right wayparentComments−philh14yMy guess upon seeing list(a) for the first time would have been that it returns [a], which is worse than not knowing what it does.Possibly this is because I've known lisp longer than python.−lubutu14yI agree. I write Python all the time, and I would have expected something like list(*a).
Comments
My guess upon seeing list(a) for the first time would have been that it returns [a], which is worse than not knowing what it does.
Possibly this is because I've known lisp longer than python.
I agree. I write Python all the time, and I would have expected something like list(*a).