Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do objects work?
#8
(Oct-24-2019, 03:54 PM)pyThon_ Wrote: What makes you think the unique identifier is the memory address? The docs don’t say anything about it being an memory address, here this link will help out click me
Sure if want to dig deeper and find where the address is in C using ctypes as you see in your link a couple of post further.

See what help(id) return.
>>> help(id)
Help on built-in function id in module builtins:

id(obj, /)
    Return the identity of an object.
    
    This is guaranteed to be unique among simultaneously existing objects.
    (CPython uses the object's memory address.)
Then have to explain that this is the Python implementation memory address.
To get the C level address has to use ctypes or what's the assembly code or better 000100100110001 adress ,just stop Hand
Dos this matter at all?
Reply


Messages In This Thread
How do objects work? - by pyThon_ - Oct-24-2019, 08:56 AM
RE: How do objects work? - by Gribouillis - Oct-24-2019, 09:35 AM
RE: How do objects work? - by jefsummers - Oct-24-2019, 02:01 PM
RE: How do objects work? - by pyThon_ - Oct-24-2019, 03:06 PM
RE: How do objects work? - by snippsat - Oct-24-2019, 03:41 PM
RE: How do objects work? - by pyThon_ - Oct-24-2019, 03:54 PM
RE: How do objects work? - by Gribouillis - Oct-24-2019, 04:16 PM
RE: How do objects work? - by pyThon_ - Oct-24-2019, 06:52 PM
RE: How do objects work? - by snippsat - Oct-24-2019, 04:34 PM
RE: How do objects work? - by Gribouillis - Oct-24-2019, 10:05 PM
RE: How do objects work? - by pyThon_ - Oct-24-2019, 11:13 PM
RE: How do objects work? - by Gribouillis - Oct-25-2019, 06:13 AM
RE: How do objects work? - by jefsummers - Oct-25-2019, 03:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do integer objects work? pyThon_ 2 2,017 Oct-22-2019, 01:36 AM
Last Post: wavic
  Python - Make Json objects to work concurrently through Threads? WeInThis 0 2,729 Sep-22-2017, 11:31 AM
Last Post: WeInThis

Forum Jump:

User Panel Messages

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