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

Xuanji Li report at bugs.python.org
Sat Nov 27 11:20:26 CET 2010


Xuanji Li <xuanji at gmail.com> added the comment:

Hi, I'm also looking at listobject.c also... if we want list.clear() to behave exactly like del list[], we may be able to just call list_ass_slice on the list. Similarly for list.copy which should behave like a=l[:]

----------
nosy: +xuanji

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


More information about the Python-bugs-list mailing list