From: Gerhard <ger...@gm...> - 2002-07-29 01:05:05
|
* Mark McEahern <mar...@mc...> [2002-07-28 19:02 -0500]: > > but it is not so elegant and differs from what we can write for > > standard built-in Python types: > > > > 123.45 == None > > Have you tried: > > 123.45 is None: > > I thought comparing to None via equality was bad form? Indeed. I learnt that in a thread you started on c.l.py. All comparisons to None using == are now gone since the 2.1 release, btw. Gerhard -- mail: gerhard <at> bigfoot <dot> de registered Linux user #64239 web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930 public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930 reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b'))) |