Skip to content

Comment on Python: copying a list the right wayparent

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).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.