[issue33714] module can set an exception in tp_clear
Ashley Whetter
report at bugs.python.org
Fri Oct 4 16:41:49 EDT 2019
Ashley Whetter <ashley at awhetter.co.uk> added the comment:
I've attached a reproduction case. Here's the setup.py that I used:
```
from distutils.core import Extension, setup
extension = Extension("breaky", ["breaky.c"])
setup(
name="tp_clear",
version="0.1.0",
ext_modules=[extension],
)
```
which I built and ran with:
```
python setup.py build_ext --inplace
python -c "import breaky, gc; a = breaky.Breaky(); a = 1"
```
----------
nosy: +AWhetter
Added file: https://bugs.python.org/file48642/breaky.c
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33714>
_______________________________________
More information about the Python-bugs-list
mailing list