Python Forum
VM address (C pointer) of Python object
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VM address (C pointer) of Python object
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
Do you mean id() function in python?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  convert address and broadcast to network object Skaperen 9 1,724 Mar-09-2023, 06:55 PM
Last Post: Skaperen
  python update binary object (override delivered Object properties) pierre38 4 1,711 May-19-2022, 07:52 AM
Last Post: pierre38
  How to convert a string "<... object at POINTER>" to an object? mandaxyz 5 3,540 Aug-08-2020, 10:44 PM
Last Post: mandaxyz
  General pointer to start data4speed 3 1,911 Jul-01-2020, 06:18 AM
Last Post: DPaul
  Pointer in the right direction? Viking 5 2,677 Apr-22-2020, 06:14 PM
Last Post: Viking
  trace invalid pointer simon149 7 4,999 Apr-16-2019, 07:05 AM
Last Post: simon149
  How to use python to receive Gobject.pointer stephenwei 0 2,533 Oct-30-2017, 04:56 PM
Last Post: stephenwei
  want to know the kind of object whether its a python or json object johnkennykumar 5 53,321 Jan-21-2017, 08:47 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020