newbie file writing

Adrian Eyre a.eyre at optichrome.com
Wed Mar 8 11:55:02 EST 2000


> if tempinbox is not None:

I used to do this, but was a bit concerned it would be parsed
as:

if (tempinbox) is (not None)

...but it actually seems to be parsing it as:

if not (tempinbox is None)

...as if there's a token "is not", similar to "!="
Maybe we can change this in Python 1.6 to "isn't" ;-)

-----------------------------------------------------------------
Adrian Eyre <a.eyre at optichrome.com> - http://www.optichrome.com 





More information about the Python-list mailing list