[New-bugs-announce] [issue28865] [MinGW32-x64]-PyList_Check PyDict_Check does not work

Mikhail report at bugs.python.org
Sun Dec 4 07:14:37 EST 2016


New submission from Mikhail:

Windows 10 x64
Python 3.4, 3.5, Anaconda3 4.2  - x64
SWIG 3.0.8, 3.0.10
MinGW32/64  - TDM-GCC-64 5.1.0-2, x86_64-5.3.0-win32-sjlj-rt_v4-rev0, x86_64-6.2.0-win32-sjlj-rt_v5-rev1  

The code in C compiles fine, there are no warnings. But then, in the finished module, do not work C-API functions such as:

PyList_Check
PyDict_Check
PyDict_Next

PyObject *result = PyList_New(1);
printf("%i \n", PyList_Check(result));

Check always returns zero, even if the object is created in the previous line.
But PyMapping_Check works fine

----------
components: Build, Distutils, Windows
messages: 282333
nosy: dstufft, eric.araujo, mifik, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: [MinGW32-x64]-PyList_Check PyDict_Check does not work
type: resource usage
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28865>
_______________________________________


More information about the New-bugs-announce mailing list