Skip to content

Extraneous error output when process exits after using subinterpreters #135729

Description

@a-reich

Bug report

Bug description:

I opened an issue earlier on the repo for the PyPI backport, but now that PEP 734 is implemented (🎉!) I am doing so here.

Reproducer:

>>>fromconcurrentimportinterpreters>>>interp1=interpreters.create()
>>>interp1.close() # same output occurs without this>>>exitExceptionignoredwhilecallingdeallocator<functionInterpreter.__del__at0x7308402c8460>:
Traceback (mostrecentcalllast):
File"/usr/lib/python3.14/concurrent/interpreters/__init__.py", line146, in__del__File"/usr/lib/python3.14/concurrent/interpreters/__init__.py", line162, in_decrefTypeError: catchingclassesthatdonotinheritfromBaseExceptionisnotallowed

I am on release 3.14.0b3 installed as an ubuntu distribution, running on WSL.

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-subinterpreterstype-bugAn unexpected behavior, bug, or error

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions