Generating a unique identifier
Wildemar Wildenburger
lasses_weil at klapptsowieso.net
Fri Sep 7 10:06:07 EDT 2007
Will Maier wrote:
> On Fri, Sep 07, 2007 at 12:03:23PM -0000, Steven D'Aprano wrote:
> [...]
>> which is easy enough, but I thought I'd check if there was an existing
>> solution in the standard library that I missed. Also, for other
>> applications, I might want them to be rather less predictable.
>
> 2.5 includes the uuid module for RFC 4122 universally-unique IDs:
>
> http://docs.python.org/lib/module-uuid.html
>
Jesus Christ! What in all the world *doesn't* Python do already?!
Can't we now just write up a module for the standard lib that takes care
of writing all the other code as well and just forget about getting our
hands dirty with programming altogether?
/W
(just in case: ;)!)
More information about the Python-list
mailing list