News for hackers. Stuff that matters.
Re:Inside cpyext: Why emulating CPython C API is so Hard by faragon on Friday September 21, 2018 @04:07PM (#18042291)
As contrast, calling C from Python, even using callbacks, it is very easy and incredibly useful, thanks to the "ctypes" [1]

[1] https://docs.python.org/2/library/ctypes.html

Re:Inside cpyext: Why emulating CPython C API is so Hard by simias on Friday September 21, 2018 @05:30PM (#18042800)
True but that's not particularly impressive, most non-sandboxed scripting languages have a straightforward way to call C. It's just a lot simpler that way: C doesn't have much of a runtime, you don't have to worry about corrupting C's state too much. There's no garbage collector in C for instance.
Re:Inside cpyext: Why emulating CPython C API is so Hard by mattip on Friday September 21, 2018 @07:59PM (#18043596)
Better to use cffi instead, it will be much more performant on PyPy