Amaury Forgeot d'Arc added the comment:
Here is a test module that segfaults on Python3.5.
It's derived from _testcapi, but it can be anything with a PyNumberMethods.
I compiled with
gcc -g -I path/to/cpython3.4/Include/ -I /path/to/cpython3.4 mytest.c -fPIC
--shared -o mytest.so
Then I ran python3.5 and:
import mytest
print(mytest.matmulType() @ 1)
When the module is compiled with 3.5, TypeError is correctly raised.
----------
Added file: http://bugs.python.org/file37397/mytest.c
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23020>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com