python-c-api
How to pass flag to gcc in Python setup.py script?
I\'m writing a Python extension in C that requires the CoreFoundation framework (among other things). This compiles fine with:[详细]
2022-12-10 18:20 分类:问答Nested Python C Extensions/Modules?
How do I compile a C-Python module such that it is local to another? E.g. if I have a module named \"bar\" and another module named \"mymodule\", how do I compile \"bar\" so that it imported via \"imp[详细]
2022-12-10 09:59 分类:问答Explanation of PyAPI_DATA() macro?
I\'ve searched all over the web and can\'t seem to find documentation or even a simple explanation of what PyAPI_DATA() does (even though it is used in the Python header files and cited on python.o开发[详细]
2022-12-10 02:58 分类:问答PyDateTime_IMPORT macro not initializing PyDateTimeAPI variable
I\'m using the Python C API on Windows using Visual Studio 2008. When I attempt to use the PyDate_Check macro, and other related macros, they cause an access violation because the static variable PyDa[详细]
2022-12-09 20:22 分类:问答