Bug report
Bug description:
We have exported the create function from concurrent.interpreters._queue to concurrent.interpreters:
https://github.com/python/cpython/blob/8288f3693f50058ad9b9fe04e01f5dad902d8bad/Lib/concurrent/interpreters/__init__.py#L13C15-L13C27
But the create function accept an optional parameter unbounditems, which can be one of UNBOUND / UNBOUND_ERROR / UNBOUND_REMOVE:
|
def create(maxsize=0, *, unbounditems=UNBOUND): |
Besides of this, put / put_nowait methods may raise ItemInterpreterDestroyed if we specify the unbounditems to UNBOUND_ERROR.
As a result, we should export them to concurrent.interpreters from concurrent.interpreters._queue.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
We have exported the
createfunction fromconcurrent.interpreters._queuetoconcurrent.interpreters:https://github.com/python/cpython/blob/8288f3693f50058ad9b9fe04e01f5dad902d8bad/Lib/concurrent/interpreters/__init__.py#L13C15-L13C27
But the
createfunction accept an optional parameterunbounditems, which can be one ofUNBOUND/UNBOUND_ERROR/UNBOUND_REMOVE:cpython/Lib/concurrent/interpreters/_queues.py
Line 65 in 8288f36
Besides of this,
put/put_nowaitmethods may raiseItemInterpreterDestroyedif we specify theunbounditemstoUNBOUND_ERROR.As a result, we should export them to
concurrent.interpretersfromconcurrent.interpreters._queue.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs