None assigment

Gregoire Welraeds greg at
Thu Feb 8 06:54:00 EST 2001

While playing a bit with python 2.0, I found that I can assign some value
to None

EG: None= 2

which I found to be very pernicious because then the following, for
example, won't work any more:

>>> b= filter(None, [1,2,'',3])

Bug or feature ?

If it is a feature (I suppose it is not a bug :), what is the interest of
this ?

Gregoire Welraeds
Perceval Development team
Perceval Technologies sa/nv	Tel: +32-2-6409194		
Rue Tenbosch, 9			Fax: +32-2-6403154		
B-1000 Brussels			general information:   info at
BELGIUM				technical information: helpdesk at

More information about the Python-list mailing list