On 27/05/10 13:13, Greg Ewing wrote: > The way that functions get access to names in enclosing > local scopes is by having them passed in as cells, but that > mechanism is only available for optimised local namespaces, > not ones implemented as dicts. I believe exec already includes the tapdancing needed to make that work. As Guido pointed out, it's the ability to generate closures directly from a source string that is currently missing. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia ---------------------------------------------------------------
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