[issue10516] Add list.clear() and list.copy()

Georg Brandl report at bugs.python.org
Tue Mar 1 07:34:24 CET 2011


Georg Brandl <georg at python.org> added the comment:

Hmm, shouldn't self.__class__(self) be a good default implementation of copy()?

I'd expect any sequence to support this way of creation from another sequence, even if it's inefficient.

----------

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


More information about the Python-bugs-list mailing list