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

Georg Brandl report at bugs.python.org
Sat Nov 27 11:58:34 CET 2010


Georg Brandl <georg at python.org> added the comment:

Yes, list_clear should be called, but no, it cannot be used directly because a method needs a PyObject* return value.  So a wrapper method is needed that looks like listappend() does for list.append(). list_copy() will just look like list_slice() with the index fiddling removed.

----------
nosy: +georg.brandl

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


More information about the Python-bugs-list mailing list