[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Pierre Chatelier
Change by Pierre Chatelier : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Pierre Chatelier
Pierre Chatelier added the comment: Aaand finally there is still something : it depends on the call context. Once in a C++/CLI class, the link bug occurs again. Here is attached a minimal project. -- status: closed -> open Added file: https://bugs.python.org/file48721/PythonFromC.zip

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Pierre Chatelier
Pierre Chatelier added the comment: Just reproduced and solved it at the same time ! It happened with Debug build, where I linked to pythonxx.lib instead of pythonxx_d.lib, because I did not download the debug binaries. Ultimately : my fault. -- __

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Zachary Ware
Zachary Ware added the comment: Thanks for reporting back. If you find that you can provide a reliable reproducer later, do please reopen and attach it. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Pierre Chatelier
Pierre Chatelier added the comment: Can't reproduce any more. It might have been specific to the Visual Studio version I used at that time. -- ___ Python tracker ___ _

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-18 Thread Batuhan
Batuhan added the comment: Can you give us a case where we can reproduce this locally? -- nosy: +BTaskaya ___ Python tracker ___ __

[issue32371] Delay-loading of python dll is impossible when using some C macros

2017-12-19 Thread Pierre Chatelier
New submission from Pierre Chatelier : Delay-loading of the python DLL is impossible when using some C macros. For instance, PyLong_Check() is OK, but PyBool_Check() or PyFunc_Check() will eventually raise a link error. This is due to the fact that PyBool_Check() directly use the PyBool_Type s