Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change to directly import UNBOUND.
  • Loading branch information
note35 committed Dec 10, 2025
commit fb22cf6c3b544669254a942f237d9a126f99b442
4 changes: 0 additions & 4 deletions Lib/concurrent/interpreters/_crossinterp.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ def __repr__(self):
for k, v in _UNBOUND_CONSTANT_TO_FLAG.items()}


def register_unbound(unbound, flag):
_UNBOUND_CONSTANT_TO_FLAG[unbound] = flag


def serialize_unbound(unbound):
op = unbound
try:
Expand Down
6 changes: 1 addition & 5 deletions Lib/concurrent/interpreters/_queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
QueueError, QueueNotFoundError,
)
from ._crossinterp import (
UNBOUND_ERROR, UNBOUND_REMOVE,
UNBOUND, UNBOUND_ERROR, UNBOUND_REMOVE,
)

__all__ = [
Expand Down Expand Up @@ -46,10 +46,6 @@ class ItemInterpreterDestroyed(QueueError,
_PICKLED = 1


UNBOUND = _crossinterp.UnboundItem.singleton('queue', __name__)
_crossinterp.register_unbound(UNBOUND, 3)


def _serialize_unbound(unbound):
if unbound is UNBOUND:
unbound = _crossinterp.UNBOUND
Expand Down
Loading