Re: value of: None is None is None

2010-06-27 Thread Thomas Jollans
On 06/27/2010 01:45 PM, Lawrence D'Oliveiro wrote: > In message , Alan G Isaac wrote: > >> Surprising for a moment, if you don't >> immediatelyrecognize it as a chained comparison. > > Bugger. So much for a Python version of this >

Re: value of: None is None is None

2010-06-27 Thread Lawrence D'Oliveiro
In message , Alan G Isaac wrote: > Surprising for a moment, if you don't > immediatelyrecognize it as a chained comparison. Bugger. So much for a Python version of this , then ... -- http://mail.python.org/mailman/listinfo/pyth

Re: value of: None is None is None

2010-06-26 Thread D'Arcy J.M. Cain
On Sat, 26 Jun 2010 11:02:55 +0200 Thomas Jollans wrote: > On 06/25/2010 10:41 PM, Alan G Isaac wrote: > None is None is None > > True > (None is None) is None > > False > None is (None is None) > > False > > Chained comparisons - one of those language features that some of the > t

Re: value of: None is None is None

2010-06-26 Thread Thomas Jollans
On 06/25/2010 10:41 PM, Alan G Isaac wrote: > Surprising for a moment, if you don't > immediatelyrecognize it as a chained comparison. > (Just sharing.) > Alan Isaac > None is None is None > True (None is None) is None > False None is (None is None) > False > Chained comparisons -

value of: None is None is None

2010-06-25 Thread Alan G Isaac
Surprising for a moment, if you don't immediatelyrecognize it as a chained comparison. (Just sharing.) Alan Isaac None is None is None True (None is None) is None False None is (None is None) False -- http://mail.python.org/mailman/listinfo/python-list