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

Raymond Hettinger report at bugs.python.org
Wed Nov 24 03:17:01 CET 2010

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

Guido approved these both in a thread earlier this year.

The reasoning for copy() was the same as for clear(), some folks couldn't cope with:

   b = a[:]

nosy: +rhettinger
title: Add list.clear() -> Add list.clear() and list.copy()

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list