[Python-Dev] Inconsistency of PyModule_AddObject() (original) (raw)

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 PyModuleAddIntConstant() etc than with PyObjectSetAttrString.

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 PyModuleAddObject() incorrectly (not blaming authors).

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



More information about the Python-Dev mailing list