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

bpo-38069: Convert _posixsubprocess to PEP-384 #15780

Merged
merged 2 commits into from
Sep 10, 2019

Conversation

DinoV
Copy link
Contributor

@DinoV DinoV commented Sep 9, 2019

Summary:
Eliminate uses of _Py_IDENTIFIER from _posixsubprocess, replacing them with interned strings.

Also tries to find an existing version of the module, which will allow subinterpreters.

https://bugs.python.org/issue38069

Automerge-Triggered-By: @tiran

Summary:
Eliminate uses of `_Py_IDENTIFIER` from `_posixsubprocess`, replacing them with interned strings.

Also tries to find an existing version of the module, which will allow subinterpreters.

Test Plan: `./python -m test -j0`
@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

@gpshead gpshead self-assigned this Sep 9, 2019
Copy link
Member

@gpshead gpshead left a comment

Choose a reason for hiding this comment

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

Thanks for doing this modernization, i assume you're taking this on for a pile of stdlib modules? yay!

@serhiy-storchaka
Copy link
Member

This looks as unneeded complication to me. What is the benefit of all these changes? Why get rid of _Py_IDENTIFIER? Why _posixsubprocessstate_global->enable is better than &PyId_enable?

@tiran
Copy link
Member

tiran commented Sep 10, 2019

The current _Py_IDENTIFIER approach is not compatible with sub-interpreters. In the long run the identifier has to be replaced with a different implementation. The interned interpreter state strings is one good approach.

@miss-islington miss-islington merged commit 5a7d2e1 into python:master Sep 10, 2019
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
Summary:
Eliminate uses of `_Py_IDENTIFIER` from `_posixsubprocess`, replacing them with interned strings.

Also tries to find an existing version of the module, which will allow subinterpreters.



https://bugs.python.org/issue38069
@DinoV DinoV deleted the pep384/posixsubprocess branch May 31, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants