![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Question about idioms for clearing a list
From: Tim Chase <python.list@tim.thechases.com>
Date: Tue Jan 31 2006 - 18:18:49 CET
> I know that the standard idioms for clearing a list are:
A little example will demonstrate:
>>> x = [1,2,3,4,5]
[*] note the differences in the results of "z", even though we've
By using
x = []
you set x, but you do not clear the list that other items (y & z)
-tim
|