[docs] [issue17380] initproc return value is unclear

Zbyszek Jędrzejewski-Szmek report at bugs.python.org
Fri Mar 8 15:44:33 CET 2013


Zbyszek Jędrzejewski-Szmek added the comment:

On Fri, Mar 08, 2013 at 02:30:18PM +0000, Amaury Forgeot d'Arc wrote:
> 
> 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(...))
>         PyErr_Print();
That's not very nice. Would it make sense to unify those
checks, e.g. for "initproc() < 0"? Than the documentation
could be updated.

Zbyszek

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17380>
_______________________________________


More information about the docs mailing list