New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Builtins treated as free variables? #48470
Comments
#---------------------------------------------------------------------- #---------------------------------------------------------------------- Could the documentation be clarified to state: usage of certain Python Thanks, Dave #---------------------------------------------------------------------- emits the following: |
The request as stated is invalid. The context of the cited sentence is Built-in names are not defined in the code block. Therefore, they are
So something like the following could be added: where *built-in objects* is linked to that section near the top of the |
There is no proposed patch yet, so this is out of scope for 2.5.3. |
There is no way for the interpreter to distinguish between builtins and If you need unqualified exec to work in an innner function, use function def a():
def b(long=long):
x = long(3)
exec "" |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: