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/042339.html below:

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

[Python-Dev] PEP 326 (quick location possibility) [Python-Dev] PEP 326 (quick location possibility)Tim Peters tim.one at comcast.net
Thu Jan 29 14:36:58 EST 2004
>>         if global_min is None or score(candidate) < global_min:

...

[Aahz]
> That's not a problem I've run into, and I don't see it cropping up all
> that often on c.l.py.  (To be precise, I don't have any memories of it
> cropping up.)

No, most search loops you see on c.l.py don't bother with this at all, and
are brittle as a result.  That's the point.  The need for additional "thing
is None" kinds of clauses is something people learn the hard way, after
they've been burned by making a bad guess for an extreme initial value (or
more likely what turns out to be bad *eventually* -- passes all their
initial tests, but screws up later when input changes).


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