Skip to content

_xxinterpqueues.get return strange value, when the queue is empty #116239

Closed
@sobolevn

Description

@sobolevn

Bug report

Code:

» ./python.exe                                      
Python 3.13.0a4+ (heads/main:5dc8c84d397, Mar  2 2024, 10:55:34) [Clang 15.0.0 (clang-1500.0.40.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import _xxinterpqueues
>>> a = _xxinterpqueues.create(2, 9)
>>> _xxinterpqueues.get(a, 'a')
('a', 0)
>>> 

It is happening on a fresh build of main after #116102 is fixed.

I can reproduce this 100% of times, QueueEmpty as @ericsnowcurrently said in #116102 (comment) never happens to me.

I am on macos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedtopic-subinterpreterstype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions