None assigment

Aahz Maruch aahz at panix.com
Thu Feb 8 11:10:12 EST 2001


In article <mailman.981633367.1329.python-list at python.org>,
Gregoire Welraeds  <greg at perceval.be> wrote:
>
>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 ?

Neither, really; it's Just The Way Things Work.
-- 
                      --- Aahz (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"Actually, I've found that Usenet has helped a lot with my terror of
social stupidity.  Seeing people I really like and respect behave like
idiots in public has been very beneficial."  --Rachael Lininger



More information about the Python-list mailing list