[issue32881] pycapsule:PyObject * is NULL pointer

2018-02-20 Thread zhaoya
zhaoya <zhaoya881...@163.com> added the comment: FUNCTION_CALL_MODE is __stdcall i think no problem.because, if GetContext(PyObject *capsule) -->GetContext() is ok. PyObject *capsule from python to c unknown error occurred. -- ___ Pytho

[issue32881] pycapsule:PyObject * is NULL pointer

2018-02-19 Thread zhaoya
New submission from zhaoya <zhaoya881...@163.com>: i have question:call,c-->python-->c. 1.the c pointer void* abc="123" by pycapsule in the c code. .. void* lpContext = "abc"; PyObject * lpPyContext = PyCapsule_New(lpContext, "Context",NULL); ..