[docs] [issue17380] initproc return value is unclear

Amaury Forgeot d'Arc report at bugs.python.org
Fri Mar 8 15:30:18 CET 2013

Amaury Forgeot d'Arc added the comment:

The return value for error conditions should be -1.

- typeobject.c checks with "< 0"
- in _iomodule.c, there is "== -1"
- and pygobject/gobject/gobjectmodule.c just does::
    if (...tp_init(...))

nosy: +amaury.forgeotdarc

Python tracker <report at bugs.python.org>

More information about the docs mailing list