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/2001-January/011808.html below:

[Python-Dev] Weird use of hash() -- will this work?

[Python-Dev] Weird use of hash() -- will this work? [Python-Dev] Weird use of hash() -- will this work?Andrew Kuchling akuchlin@mems-exchange.org
Thu, 18 Jan 2001 10:28:19 -0500
On Thu, Jan 18, 2001 at 02:23:21AM -0500, Eric S. Raymond wrote:
>And it's not hard to notice that an object hash is a memory address.

Unless the object defines __hash__()!  If you want the memory address, 
use id() instead.

--amk



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