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

Eric Raymond esr@netaxs.com
Sat, 20 Jan 2001 13:20:26 -0500


On Sat, Jan 20, 2001 at 01:01:04PM -0500, Guido van Rossum wrote:
> > 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?

Actually, I'm not fighting it any more.  I changed my mind a few minutes
after shipping that response.
-- 
	<a href="http://www.tuxedo.org/~esr/home.html">Eric S. Raymond</a>