python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
python C API error: undefined reference to PyErr_Occurred
I'm working on a Python 2.7 project and I'm attempting to write a c++ extension to speed up our implementation of the D* lite algorithm. Never played with python C API, I'm struggling a lot in setting...
dc_Bita98
Votes: 0
Answers: 0
How to Access Current File Path in Python C Extension
In Python, you can get the current file path with the __file__ attribute.
print(__file__)
How can I access this attribute from a Python C Extension? I tried the following code, but the attribute does...

GreyHope
Votes: 0
Answers: 2
Undefined reference to PyAST_mod2obj
So i'm doing some stuff with python c api. I'm trying to parse a string with function PyParser_ASTFromString
There is no error here, I then tried to change mod_ty i got to PyObject* with functiin PyAS...
Malma
Votes: 0
Answers: 0
PyGILState_STATE didn't change after PyGILState_Ensure()/PyGILState_Release()
I have a shared library written in C and called in Python.
In a pthread, some Python C API called between PyGILState_Ensure() and PyGILState_Release().
The value of PyGILState_STATE remains the same a...
Jack
Votes: 0
Answers: 0