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

gh-76785: Move the Cross-Interpreter Code to Its Own File#111502

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

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrentlyericsnowcurrently commentedOct 30, 2023
edited by bedevere-appbot
Loading

This is partly to clear this stuff out of pystate.c, but also in preparation for moving some code out of _xxsubinterpretersmodule.c.

This change also moves this stuff to the internal API (new: Include/internal/pycore_crossinterp.h).@vstinner did this previously and I undid it. Now I'm re-doing it. :/

(This PR essentially only moves existing code between files.)

@ericsnowcurrentlyericsnowcurrently removed the request for review froma teamOctober 30, 2023 18:17
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

};

PyAPI_FUNC(_PyCrossInterpreterData *) _PyCrossInterpreterData_New(void);
PyAPI_FUNC(void) _PyCrossInterpreterData_Free(_PyCrossInterpreterData *data);
Copy link
Member

Choose a reason for hiding this comment

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

If you don't need one of these functions in shared libraries (stdlib extensions), you can replace PyAPI_FUNC() with extern.

ericsnowcurrently reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

They're basically all used in _xxsubinterpretersmodule.c and _xxinterpchannelsmodule.c.

vstinner reacted with thumbs up emoji
@ericsnowcurrentlyericsnowcurrently merged commitc6fe086 intopython:mainOct 30, 2023
@ericsnowcurrentlyericsnowcurrently deleted the crossinterp-utils-refactor branchOctober 30, 2023 22:53
FullteaR pushed a commit to FullteaR/cpython that referenced this pull requestNov 3, 2023
…ongh-111502)This is partly to clear this stuff out of pystate.c, but also in preparation for moving some code out of _xxsubinterpretersmodule.c.  This change also moves this stuff to the internal API (new: Include/internal/pycore_crossinterp.h).@vstinner did this previously and I undid it.  Now I'm re-doing it. :/
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
…ongh-111502)This is partly to clear this stuff out of pystate.c, but also in preparation for moving some code out of _xxsubinterpretersmodule.c.  This change also moves this stuff to the internal API (new: Include/internal/pycore_crossinterp.h).@vstinner did this previously and I undid it.  Now I'm re-doing it. :/
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…ongh-111502)This is partly to clear this stuff out of pystate.c, but also in preparation for moving some code out of _xxsubinterpretersmodule.c.  This change also moves this stuff to the internal API (new: Include/internal/pycore_crossinterp.h).@vstinner did this previously and I undid it.  Now I'm re-doing it. :/
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Eclips4Eclips4Eclips4 left review comments

@vstinnervstinnervstinner approved these changes

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

Successfully merging this pull request may close these issues.

3 participants
@ericsnowcurrently@vstinner@Eclips4

[8]ページ先頭

©2009-2025 Movatter.jp