[Python-ideas] clear() method for lists

Oleg Broytman phd at phd.pp.ru
Thu Feb 11 15:57:24 CET 2010

On Thu, Feb 11, 2010 at 09:51:42AM -0500, Gerald Britton wrote:
> Say you had a problem where you started with a basic tuple, then
> needed to add items to it to produce some result.  Now suppose you
> want to do that repeatedly.  You don't want to disturb the basic
> tuple

   You can never "disturb" a tuple - it's a read-only object.

     Oleg Broytman            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-ideas mailing list