Antoine Pitrou added the comment: > sys.gettotalrefcount() is only defined when Python is compiled in > debug mode. sys.getallocatedblocks() should only be available when > the > right debug option is present. This function is specific to CPython > anyway, Python module should not rely on this (too much) ;-)
On the contrary, the aim is precisely to provide a memory statistics function which is available for everyone, not only CPython developers. It is simply not practical right now for a C extension developer to check for memory leaks. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13390> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com