Skip to content

gh-132775: Unrevert "Add _PyCode_VerifyStateless()" #133528

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

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented May 6, 2025

This reverts commit 3c73cf5 (gh-133497), which itself reverted the original commit d270bb5 (gh-133221).

We reverted the original change due to failing android tests. The checks in _PyCode_CheckNoInternalState() were too strict, so we've relaxed them.

@ericsnowcurrently
Copy link
Member Author

!buildbot android

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit bcc081b 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F133528%2Fmerge

The command will test the builders whose names match following regular expression: android

The builders matched are:

  • AMD64 Android PR
  • aarch64 Android PR

Comment on lines 637 to 638
* We consider stateless code to be "portable" if it does not return any
* any object that holds a reference to any of the code's locals. Thus
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: an extra "any".

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@ericsnowcurrently ericsnowcurrently removed the request for review from markshannon May 7, 2025 23:16
@ericsnowcurrently ericsnowcurrently enabled auto-merge (squash) May 7, 2025 23:19
@ericsnowcurrently ericsnowcurrently merged commit 27128e4 into python:main May 8, 2025
70 of 78 checks passed
@ericsnowcurrently ericsnowcurrently deleted the unrevert-add-pycode-verify-stateless branch May 8, 2025 00:06
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