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
Next Next commit
Add register_unbound in _crossinterp.py and initialize it in _queues.py
  • Loading branch information
note35 committed Dec 10, 2025
commit d5060f7808d2b9a86ac4ca5c447750b089cd3c16
4 changes: 4 additions & 0 deletions Lib/concurrent/interpreters/_crossinterp.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ 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
1 change: 1 addition & 0 deletions Lib/concurrent/interpreters/_queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class ItemInterpreterDestroyed(QueueError,


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


def _serialize_unbound(unbound):
Expand Down
Loading