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/011921.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?Guido van Rossum guido@digicool.com
Sat, 20 Jan 2001 13:01:04 -0500
> > A combination of time.time(), process id and counter should
> > work in all cases. Make sure you use a lock around the counter,
> > though.
> 
> Yes, but...this hack has to work in a multithreaded environment,
> so process ID isn't good enough.  And I don't want to keep a counter
> around if I don't have to.

Sorry Eric, this just doesn't make sense.  Keeping a counter around in
your module (protected by a semaphore) is obviously the right
solution.  Why are you fighting it?

--Guido van Rossum (home page: http://www.python.org/~guido/)



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