[Python-Dev] speeding up PyObject_GetItem

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 24 00:12:44 CET 2009

Nick Coghlan wrote:

> The main problem is that many of these methods are not only used
> internally, but are *also* part of the public C API made available to
> extension modules. We want misuse of the latter to trigger exceptions,
> not segfault the interpreter.

But is it worth slowing everything down to check for
this one particular error, among all the myriad ways
a malfunctioning extension module can cause a crash?


More information about the Python-Dev mailing list