[issue28865] [MinGW32-x64]-PyList_Check PyDict_Check does not work

2016-12-05 Thread Mikhail
Mikhail added the comment: SOLVED: I found a solution. It turned out that on the Windows x64 need to use '-DMS_WIN64' compiler option. Three days wasted. And although no one helped me, I felt that mentally you were with me, guys. Thank you! ;) -- resolution: -> not a bug status:

[issue28865] [MinGW32-x64]-PyList_Check PyDict_Check does not work

2016-12-04 Thread Steve Dower
Steve Dower added the comment: Is this the fork of MinGW specially for Python? I didn't think it supported 3.5 yet, because of the different CRT. Also, I can't easily tell right now, but if you're using the libpython35.a that's included with the regular install, you might want to regenerate

[issue28865] [MinGW32-x64]-PyList_Check PyDict_Check does not work

2016-12-04 Thread Mikhail
Mikhail added the comment: I made a small correction to the project. But the essence has not changed. With Microsoft Visual C++ Build Tools everything is fine. But I would like to use the GCC. -- Added file: http://bugs.python.org/file45755/PyAPITests.zip

[issue28865] [MinGW32-x64]-PyList_Check PyDict_Check does not work

2016-12-04 Thread Mikhail
Changes by Mikhail : Removed file: http://bugs.python.org/file45754/PyAPITests.zip ___ Python tracker ___

[issue28865] [MinGW32-x64]-PyList_Check PyDict_Check does not work

2016-12-04 Thread Mikhail
Mikhail added the comment: Project included. building output in the console: running build_ext building '_PyAPITests' extension swigging PyAPITests.i to PyAPITests_wrap.c z:\PortableApps\MyApps\Dev\SWIGWin\swigwin-3.0.10\swig.exe -python -py3 -o PyAPITests_wrap.c PyAPITests.i

[issue28865] [MinGW32-x64]-PyList_Check PyDict_Check does not work

2016-12-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please provide a complete C file that is compiled? Output also PyType_GetFlags(Py_TYPE(result)). And check that result is not NULL. -- nosy: +serhiy.storchaka versions: -Python 3.4 ___ Python tracker

[issue28865] [MinGW32-x64]-PyList_Check PyDict_Check does not work

2016-12-04 Thread Mikhail
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,