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

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

[Python-Dev] PEP 326 (quick location possibility) [Python-Dev] PEP 326 (quick location possibility)Andrew Koenig ark-mlist at att.net
Thu Jan 29 12:28:06 EST 2004
> >     global_minimum = made_up_value_presumed_to_be_unreachably_large
> >     while mote_to_look_at:
> >         do a ton of computation, yielding a candidate
> >         if score(candidate) < global_minimum:
> >             global_minimum = score(candidate)
> >             do a ton of stuff to prune the search based
> >                 on the new (so far) local minimum
> >     return global_minimum

> I'm curious: why you didn't use None as the initial value or use some
> other hack to avoid initializing with a specific number?

Perhaps None is unreachably small, rather than unreachably large?


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