[Python-Dev] PEP 326 (quick location possibility) (original) (raw)
Tim Peters tim.one at comcast.net
Thu Jan 29 16:56:17 EST 2004
- Previous message: [Python-Dev] PEP 326 (quick location possibility)
- Next message: [Python-Dev] PEP 326 (quick location possibility)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Thomas Heller]
Well, then we should add "==" and "<>" also.
Alas, <> will be introduced as a deprecated spelling, despite Barry's protests.
I'm sure disambiguities in the grammar can be resolved somehow ;-)
>>> == == == True >>> <> <> <> False
I'm quite sure the last line should be True. <> compares not equal to everything, including itself, while == compares equal to everything. Then
<> == ==
might be a nice way to spell random.choice([True, False]); or maybe it should raise a new ParadoxError. We should leave something for Guido to decide here .
- Previous message: [Python-Dev] PEP 326 (quick location possibility)
- Next message: [Python-Dev] PEP 326 (quick location possibility)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]