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 558: Incorporate review comments from python-dev posting #2038

Merged
merged 4 commits into from
Jul 21, 2021

Conversation

ncoghlan
Copy link
Contributor

@ncoghlan ncoghlan commented Jul 18, 2021

  • Propose a PyLocals_Kind enum rather than PyLocals_GetReturnsCopy
  • Reference python-dev threads from early 2021
  • Remove an outdated mention of possibly dropping support for storing
    extra f_locals keys in optimised scopes
  • Make it more explicit that accessing frame.f_locals in Python
    refreshes the f_locals cache on that frame
  • Note that read-only views on optimised frames have the same cache
    consistency limitations as the read/write proxy
  • Fix miscellaneous typos

* Fix miscellaneous typos
* Remove an outdated mention of possibly dropping suport for storing
  extra f_locals keys in optimised scopes
* Make it more explicit that accessing frame.f_locals in Python
  refreshes the f_locals cache on that frame
* GetReturnsCopy -> GetKind
* Reference Jan/Feb 2021 python-dev threads
* Note that read-only views on optimised frames have
  the same cache consistency limitations as the read/write
  proxy does.
@ncoghlan ncoghlan changed the title PEP 558: Incorporate text review comments from python-dev posting PEP 558: Incorporate review comments from python-dev posting Jul 21, 2021
@ambv ambv merged commit 0e0321a into python:master Jul 21, 2021
@ncoghlan
Copy link
Contributor Author

Ah, I should have put the in-progress label on this one - I was going to wait until @njsmith had provided comments on the posted version before publishing the update :)

No worries though, as I doubt replacing the clunky boolean query API with an enum is going to prove controversial.

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.

3 participants