Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] gh-132775: Add _PyCode_GetScriptXIData() (gh-133480)#133676

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedMay 8, 2025
edited by bedevere-appbot
Loading

This converts functions, code, str, bytes, bytearray, and memoryview objects to PyCodeObject,
and ensure that the object looks like a script. That means no args, no return, and no closure.
_PyCode_GetPureScriptXIData() takes it a step further and ensures there are no globals.

We also add _PyObject_SupportedAsScript() to the internal C-API.
(cherry picked from commitc81fa2b)

Co-authored-by: Eric Snowericsnowcurrently@gmail.com

This converts functions, code, str, bytes, bytearray, and memoryview objects to PyCodeObject,and ensure that the object looks like a script.  That means no args, no return, and no closure._PyCode_GetPureScriptXIData() takes it a step further and ensures there are no globals.We also add _PyObject_SupportedAsScript() to the internal C-API.(cherry picked from commitc81fa2b)Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
@ericsnowcurrentlyericsnowcurrently merged commit1059548 intopython:3.14May 8, 2025
44 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@miss-islington@ericsnowcurrently

[8]ページ先頭

©2009-2025 Movatter.jp