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

Raymond Hettinger report at bugs.python.org
Fri Feb 25 22:56:56 CET 2011


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

The ABCs are subset of the methods for the concrete APIs.  We've avoided the likes of copy() because it requires knowledge of the constructor's signature -- for example, MutableMapping does not cover copy().

It is okay for Eli to add MutableSequence.clear() because it can be implemented in terms of pop(), much like we do for MutableMapping.clear().

Eli, feel free to create a patch to add clear() and copy() to bytearray and to add clear() to MutableSequence.  Assign the patch to me for review.

----------

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


More information about the Python-bugs-list mailing list