len(var) is [CONSTANT] equal to len(var) == [CONSTANT]?

Richard Brodie R.Brodie at rl.ac.uk
Thu Nov 23 06:12:56 EST 2006


"Tor Erik Soenvisen" <toreriks at hotmail.com> wrote in message 
news:Xns9884782092A96toreriknpolarno at 129.242.5.222...

> which executes fine. Hence, 0-9999 is okey... But this is a relatively
> small range, and sooner or later you probably get two numbers with the same
> id... Thoughts anyone?

I think you are confusing yourself unnecessarily. The obvious way to implement
unique ids is to return the address of the object. It's very unlikely that two
different objects share the same address. 





More information about the Python-list mailing list