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/2000-June/005056.html below:

[Python-Dev] id() on Win64

[Python-Dev] id() on Win64 [Python-Dev] id() on Win64Finn Bock bckfnn@worldonline.dk
Thu, 29 Jun 2000 10:43:55 GMT
[Finn Bock]

> This property of id() does not hold in JPython. When used with hotspot,
> id() is not unique.

[Vladimir Marangozov}

>Is it?
>Not unique or not persistent during the object's lifetime?

Not unique. Two different objects can return the same value from
System.identityHashCode().

The HTML java docs have this to say about hashCodes:

"""
  As much as is reasonably practical, the hashCode method defined by class
  Object does return distinct integers for distinct objects. (This is
  typically implemented by converting the internal address of the object
  into an integer, but this implementation technique is not required by the
  JavaTM programming language.)
"""

Its just one of those small difference that we have to live with. In
pratical term I have seen it cause problems in pickle.py and
copy.deepcopy()

regards,
finn



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