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

Eli Bendersky report at bugs.python.org
Sat Dec 4 15:08:00 CET 2010


Eli Bendersky <eliben at gmail.com> added the comment:

Attaching a patch with the following:

1. list.copy() and list.clear() implemented in Objects/listobject.c, with appropriate doc strings (modeled after dict's docstrings)
2. Same methods implemented in collections.UserList
3. Tests added that exercise the methods in both list and UserList

Re the documentation, it's currently unclear where it should go. I asked on docs at python.org.

----------
Added file: http://bugs.python.org/file19938/issue10516.2.patch

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


More information about the Python-bugs-list mailing list