Generating unique numbers?

Irmen de Jong irmen at NOSPAMREMOVETHISxs4all.nl
Fri May 31 18:46:47 EDT 2002


> > Is there a good algorithm for generating unique numbers 
> > (ints, specifically) that can be used as object identifiers?
> 
> id(x)

If you need IDs that are unique across
- different Python processes
- different machines
id(x) won't work.

Irmen



More information about the Python-list mailing list