A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-August/037505.html below:

[Python-Dev] sizeof(long) != sizeof(void*)

[Python-Dev] sizeof(long) != sizeof(void*) [Python-Dev] sizeof(long) != sizeof(void*)Martin v. Löwis martin at v.loewis.de
Wed Aug 6 23:27:12 EDT 2003
Samuele Pedroni <pedronis at bluewin.ch> writes:

> but that something like id() can be cheaply offered/exposed is very
> much a characteristic of the underlying GC implementation that is
> being exploited (objects don't move)

That is not true. id() exposes the "identity" of an object, and an
run-time system that has the notion of object identities (as opposed
to all-things-with-equal-values-are-equal) should have no difficulties
exposing the object identity as a number.

> I have just gone through implementing a correct id() for Jython.

It sounds like you haven't been looking hard enough. The Java VM
certainly has a unique (among "life" objects) identification of
objects, which likely also fits into a fixed number of bytes.

Interpret these bytes as a number.

Regards,
Martin

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4