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

Raymond Hettinger report at bugs.python.org
Tue Mar 1 04:23:06 CET 2011


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

The patch is fine.  Do consider using assertIsNot() in the tests.  Then go ahead and apply it.

The OverflowError in bytearray.pop() is a bug, please open a separate report for it and make a patch changing it to IndexError.  Assign that bug report to me.

Go ahead and propose a patch for MutableSequence.clear() implemented with MutableSequence.pop() and catching an IndexError when empty.

Thanks for your efforts.

----------

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


More information about the Python-bugs-list mailing list