bpo-42990: Add __builtins__ attribute to functions by vstinner · Pull Request #24559 · python/cpython · GitHub
Skip to content

bpo-42990: Add __builtins__ attribute to functions - #24559

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:func_builtins
Feb 18, 2021
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:func_builtins

Conversation

@vstinner

@vstinner vstinner commented Feb 17, 2021

Copy link
Copy Markdown
Member

Expose the new PyFunctionObject.func_builtins member in Python as a
new __builtins__ attribute on functions.

Document also the behavior change in What's New in Python 3.10.

https://bugs.python.org/issue42990

Expose the new PyFunctionObject.func_builtins member in Python as a
new __builtins__ attribute on functions.

Document also the behavior change in What's New in Python 3.10.
@vstinner

Copy link
Copy Markdown
Member Author

@markshannon

Copy link
Copy Markdown
Member

@vstinner
vstinner merged commit a3c3ffa into python:master Feb 18, 2021
@vstinner
vstinner deleted the func_builtins branch February 18, 2021 11:35
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Expose the new PyFunctionObject.func_builtins member in Python as a
new __builtins__ attribute on functions.

Document also the behavior change in What's New in Python 3.10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants