None assigment

Gregoire Welraeds greg at perceval.be
Thu Feb 8 12:54:00 CET 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 perceval.net
BELGIUM				technical information: helpdesk at perceval.net
URL: http://www.perceval.be/
-------------------------------------------------------------------------------





More information about the Python-list mailing list