Berker Peksag added the comment:

Thanks for the write-up, Serhiy.

It looks like "... == -1" is more popular in the codebase (for  
PyModule_AddObject, "... < 0" is the most popular style).

Here is a patch to document the current behavior of PyModule_AddObject.

----------
Added file: http://bugs.python.org/file42630/addobject_doc.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26868>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to