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

Stefan Krah stefan at bytereef.org
Wed Apr 27 16:51:29 EDT 2016


Hrvoje Niksic <hrvoje.niksic avl.com> writes:

This inconsistency has caused bugs (or, more fairly, potential leaks) before, see http://bugs.python.org/issue1782

Unfortunately, the suggested Python 3 change to PyModuleAddObject was not accepted.

First, these "leaks" only potentially show up when you already have much bigger problems (i.e. on Linux the machine would already freeze due to overallocation).

Second, these "leaks" don't even show up as "definitely lost" in Valgrind (yes, I checked).

On the bright side, Python must be in a very healthy state if we can afford to spend time on issues such as this one.

Stefan Krah



More information about the Python-Dev mailing list