[FRPythoneers] Python documentation and default expression
Jeffery D. Collins
jcollins at boulder.net
Fri Mar 15 18:16:36 MST 2002
> I've almost always used "if foo != None:". Is there a reason not to
> write it as such?
No. The "is" compares object identities and the "==" ("!=") compares object
Since None is a singleton and comparisons are always done wrt to its
the results will be identical.
Jeffery Collins (http://www.boulder.net/~jcollins)
More information about the FRPythoneers