A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-January/042342.html below:

[Python-Dev] PEP 326 (quick location possibility)

[Python-Dev] PEP 326 (quick location possibility) [Python-Dev] PEP 326 (quick location possibility)Raymond Hettinger python at rcn.com
Thu Jan 29 17:32:55 EST 2004
> [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


[Tim]
> 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 <wink>.

I suspect Jeremy will want a write-up about whether
there should be early or late evaluation:

>>> == == ==
<undecided_bool instance at 0x00A3BF08>
>>> _.eval()
True


Raymond Hettinger



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4