[issue10516] Add list.clear() and list.copy()
Boštjan Mejak
report at bugs.python.org
Sat Dec 4 10:32:37 CET 2010
Boštjan Mejak <bostjan.mejak at gmail.com> added the comment:
This is really welcome. It makes Python even more readable.
If 'a' is a list object, a[:] is not so obvious at first to a newcomer, but
a.copy() is.
Also, a.clear() is so perfect and understandable. I wish you could decorate Python versions prior to 3.3 with this two new list methods.
----------
nosy: +Retro
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10516>
_______________________________________
More information about the Python-bugs-list
mailing list