a-reich ยท GitHub

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:

>>> from concurrent import interpreters
>>> interp1 = interpreters.create()
>>> interp1.close() # same output occurs without this
>>> exit
Exception ignored while calling deallocator <function Interpreter.__del__ at 0x7308402c8460>:
Traceback (most recent call last):
  File "/usr/lib/python3.14/concurrent/interpreters/__init__.py", line 146, in __del__
  File "/usr/lib/python3.14/concurrent/interpreters/__init__.py", line 162, in _decref
TypeError: catching classes that do not inherit from BaseException is not allowed

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

Read the original on github.com โ†—