[issue22101] collections.abc.Set doesn't provide copy() method

Guido van Rossum report at bugs.python.org
Thu Jul 31 19:16:13 CEST 2014


Guido van Rossum added the comment:

You need to learn when to give up. :-)

I wasn't the one who added a copy() method to other containers.  I personally despise almost all uses of "copying" (including the entire copy module, both deep and shallow copy functionality).  I much prefer to write e.g. list(x) over x.copy() -- when I say list(x) I know the type of the result.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22101>
_______________________________________


More information about the Python-bugs-list mailing list