Thanks for reply. Is there any function in C to get the reference objects of a object? I want to debug where are referencing the object.
2016-09-27 15:01 GMT+08:00 dieter <die...@handshake.de>: > dl l <ldlch...@gmail.com> writes: > > I want to check the references of an object. Any way to get the > references > > of an object with Python C API? Like: gc.get_referrs(), is there similar > > API in C lib? > > "gc" is a module. You can import and access modules from the C API. > Thus, you can use "gc.get_referers" from "C" code. > > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list