Python Forum

Full Version: VM address (C pointer) of Python object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i remember about a couple years ago seeing a means to get the virtual memory address of a python object and thought it was silly and useless. but today i could use that and have forgotten how it was done. the use case i have is some debugging assistance code to check if two or more refernces to an object are references to the same object. this is post trace dump output testing so some numeric value is needed rather than a function that report if two references are the same. anyone know how to get this?
Do you mean id() function in python?