Skip to content

gh-134939: Add the interpreters Module #133958

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented May 13, 2025

@ericsnowcurrently ericsnowcurrently added the needs backport to 3.14 bugs and security fixes label May 13, 2025
@ericsnowcurrently ericsnowcurrently force-pushed the pep-734-accepted branch 4 times, most recently from 7ddfb50 to 5c8545a Compare May 27, 2025 17:59
@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 27, 2025
@bedevere-bot
Copy link

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

Results will be shown at:

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

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 27, 2025
@ericsnowcurrently ericsnowcurrently force-pushed the pep-734-accepted branch 2 times, most recently from 1e34abd to c63b6bc Compare May 29, 2025 20:56
@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 29, 2025
@bedevere-bot
Copy link

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

Results will be shown at:

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

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label May 29, 2025
@ericsnowcurrently
Copy link
Member Author

FTR, I ran this against the buildbots and there were two failures:

Neither looks related, but I'll rerun them just to be sure.

@ericsnowcurrently ericsnowcurrently changed the title Add the interpreters Module gh-134939: Add the interpreters Module May 30, 2025
@ericsnowcurrently
Copy link
Member Author

!buildbot aarch64 RHEL8 Refleaks

@bedevere-bot
Copy link

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

Results will be shown at:

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

The command will test the builders whose names match following regular expression: aarch64 RHEL8 Refleaks

The builders matched are:

  • aarch64 RHEL8 Refleaks PR

@ericsnowcurrently
Copy link
Member Author

!buildbot wasm32-wasi Non-Debug

@bedevere-bot
Copy link

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

Results will be shown at:

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

The command will test the builders whose names match following regular expression: wasm32-wasi Non-Debug

The builders matched are:

  • wasm32-wasi Non-Debug PR

@ericsnowcurrently ericsnowcurrently marked this pull request as ready for review May 30, 2025 19:30
@AA-Turner
Copy link
Member

Happy to help with documentation, a few recent features have split the docs off entirely from the implementation PR.

A

@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 3, 2025
@bedevere-bot
Copy link

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

Results will be shown at:

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

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 3, 2025
@encukou
Copy link
Member

encukou commented Jun 6, 2025

!buildbot AMD64.Windows11.Non-Debug.PR|AMD64.Windows11.Refleaks.PR|PPC64LE.Fedora.Stable.Clang.Installed.PR|PPC64LE.Fedora.Stable.PR|PPC64LE.RHEL8.LTO.+.PGO.PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @encukou for commit 491a642 🤖

Results will be shown at:

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

The command will test the builders whose names match following regular expression: AMD64.Windows11.Non-Debug.PR|AMD64.Windows11.Refleaks.PR|PPC64LE.Fedora.Stable.Clang.Installed.PR|PPC64LE.Fedora.Stable.PR|PPC64LE.RHEL8.LTO.+.PGO.PR

The builders matched are:

  • PPC64LE RHEL8 LTO + PGO PR
  • PPC64LE Fedora Stable PR
  • AMD64 Windows11 Refleaks PR
  • AMD64 Windows11 Non-Debug PR
  • PPC64LE Fedora Stable Clang Installed PR

@ericsnowcurrently
Copy link
Member Author

The PEP has been accepted, with a caveat about making it concurrent.interpreters. I'm still trying to convince folks that interpreters is better, but I'm going to merge it with concurrent.interpreters in the meantime.

@ZeroIntensity
Copy link
Member

Congrats either way!

Comment on lines 26 to 32
if name in ('Queue', 'QueueEmpty', 'QueueFull', 'create_queue'):
global create_queue, Queue, QueueEmpty, QueueFull
ns = globals()
from .queues import (
from ._queues import (
create as create_queue,
Queue, QueueEmpty, QueueFull,
)
Copy link
Member

@AA-Turner AA-Turner Jun 6, 2025

Choose a reason for hiding this comment

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

Is importing the interpreters.queues modules expensive enough to warrant the complexity of delayed imports & module-level __getattr__? If it is, we should also implement module-level __dir__.

If not though, I'd suggest just simplifying all of this into a regular import.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it might not matter so much. I'll take a look at dropping the module __getattr__.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@ericsnowcurrently
Copy link
Member Author

!buildbot PPC64LE RHEL8 LTO + PGO

@bedevere-bot
Copy link

The regex 'PPC64LE RHEL8 LTO + PGO' did not match any buildbot builder. Is the requested builder in the list of stable builders?

@ericsnowcurrently
Copy link
Member Author

!buildbot PPC64LE RHEL8 LTO + PGO

@bedevere-bot
Copy link

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

Results will be shown at:

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

The command will test the builders whose names match following regular expression: PPC64LE RHEL8 LTO \+ PGO

The builders matched are:

  • PPC64LE RHEL8 LTO + PGO PR

@ericsnowcurrently
Copy link
Member Author

I'll merge this once I've verified that buildbot passes.

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.

8 participants