Delete all list entries of length unknown

Mark Tolonen metolone+gmane at
Mon Oct 5 06:05:52 CEST 2009

"Chris Rebert" <clp2 at> wrote in message 
news:50697b2c0910042047i1cf2c1a3mc388bc74bab95d25 at
> Tuples are immutable (i.e. they cannot be modified after creation) and
> are created using parentheses.

Slight correction: tuples are created using commas.  Parentheses are only 
needed to disambiguate from other uses of comma:

Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] 
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> a=1,
>>> a
>>> a=1,2,3
>>> a
(1, 2, 3)


More information about the Python-list mailing list