loading...

Discussion on: How to copy a list in Python

Collapse
paddy3118 profile image
Paddy3118

Please don't use list unpacking for the sole purpose of creating a shallow copy of a list. Lists have a .copy method that should be used.

Collapse
rhymes profile image
rhymes

I agree, my fault :) I was enumerating the various options :)