A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-October/057169.html below:

[Python-Dev] PEP 3000 and exec

[Python-Dev] PEP 3000 and exec [Python-Dev] PEP 3000 and execChristopher Armstrong radeex at gmail.com
Tue Oct 11 02:31:09 CEST 2005
On 10/11/05, Guido van Rossum <guido at python.org> wrote:
> My idea was to make the compiler smarter so that it would recognize
> exec() even if it was just a function.
>
> Another idea might be to change the exec() spec so that you are
> required to pass in a namespace (and you can't use locals() either!).
> Then the whole point becomes moot.

I think that's a great idea. It goes a step towards a more analyzable
Python, and really, I've never found a *good* use case for allowing
this invisible munging of locals. I would guess that it would simplify
the implementation, given that there are currently so many special
cases around exec, including when used with nested scopes.

--
 Twisted   |  Christopher Armstrong: International Man of Twistery
  Radix    |    -- http://radix.twistedmatrix.com
           |  Release Manager, Twisted Project
 \\\V///   |    -- http://twistedmatrix.com
  |o O|    |
w----v----w-+
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