FixedPoint

Michael Amrhein michael.amrhein at t-online.de
Thu Feb 7 19:20:31 CET 2002


"Steve Holden" <sholden at holdenweb.com> schrieb im Newsbeitrag
news:Dhx88.95486$KM2.3465594 at atlpnn01.usenetserver.com...
> "Mark McEahern" <mark at mceahern.com> wrote ...
> > In the FixedPoint module found here:
...
>
> Since the *intent* for None is that there should only ever be one object
of
> type None, the better test would be
>
>     if something is None
>
> which can easily be used without requiring any changes to FixedPoint.
>
...

You're right, Steve, but ...
Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 == None
0
>>>

Seems_it's_supposed_to_be_that_way_ly your's
Michael






More information about the Python-list mailing list