>> 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).
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