Skip to content
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

PEP 667: Alternative to PEP to 558 for frame.f_locals and locals(). #2053

Merged
merged 10 commits into from
Aug 20, 2021

Conversation

markshannon
Copy link
Member

No description provided.

@Rosuav
Copy link
Contributor

Rosuav commented Aug 20, 2021

Header should say "Standards Track" not "Standards", but I'm guessing you know that already :)

@Rosuav
Copy link
Contributor

Rosuav commented Aug 20, 2021

And, yup, looks like you're seeing the same things I am. I'll leave you to it.

pep-0667.rst Outdated
``locals()`` will be defined as::

def locals():
f_locals = sys._getframe().f_locals
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this not be _getframe(1)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks.

@markshannon markshannon merged commit 74b5733 into python:master Aug 20, 2021
@Rosuav
Copy link
Contributor

Rosuav commented Aug 20, 2021

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants