[Python-Dev] Inconsistency of PyModule_AddObject()

Case Van Horsen casevh at gmail.com
Wed Apr 27 18:24:39 EDT 2016

On Wed, Apr 27, 2016 at 11:06 AM, Serhiy Storchaka <storchaka at gmail.com> wrote:
> I think it is better to have relation with PyModule_AddIntConstant() etc
> than with PyObject_SetAttrString.
> My patch doesn't introduce new public function, but changes the behavior of
> the old function. This needs minimal changes to user code that mostly use
> PyModule_AddObject() incorrectly (not blaming authors).

How will this impact code that uses PyModule_AddObject() correctly?

More information about the Python-Dev mailing list