[Python-ideas] {Python-ideas] C-API exposure

Sturla Molden sturla at molden.no
Wed Mar 30 16:36:48 CEST 2011


Den 30.03.2011 06:00, skrev Nick Coghlan:
> Yikes, at least stick a try-finally in there!
> If you must practice evil, practice safe evil ;)

I wasn't suggestion that one should actually do this. It was jut to show 
that the C API is exposed to Python.

Well,  _Py_Ticker is not even in the C API, but it's not declared static 
so we can do bad things with it from outside.

The point is still that ctypes.pythonapi is the DLL containing the 
CPython interpreter.

Sturla




More information about the Python-ideas mailing list