> > IIRC, most people agreed on that iterables in the generator expression need > > to be pre-computed (including myself). But there's a recent issue about > > that. > > If we're capturing the value of free variables, is there > any need to pre-compute the iterators? A free variable might be a function that itself references globals (or at least nonlocals) that might change. There is also the issue of exceptions: I'd expect exceptions in the toplevel (first) iterable to be raised immediately, and not when the first element of the iterator is requested. --Guido van Rossum (home page: http://www.python.org/~guido/)
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