>>>>> "GvR" == Guido van Rossum <guido@digicool.com> writes: | - Calling an end() function would require two calls per | iteration. Two calls is much more expensive than one call | plus a test for an exception. Especially the time-critical | for loop can test very cheaply for an exception. Plus, if the exception is both raised and caught in C, it is never instantiated, so exception matching is a pointer compare. I know this isn't the case with user defined iterators (since Python's raise semantics is to instantiate the exception), but it helps. -Barry
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