GUID Generation

Tim Golden mail at timgolden.me.uk
Mon Jul 28 16:23:24 CEST 2008


Robert Rawlins wrote:
> I’ve been looking at the following recipe for generating a GUID 
> http://code.activestate.com/recipes/163604/ however I note that its 
> about 6 years old. Has python since adopted an internal module for GUID 
> generation? Or is this 3^rd part module still the best option?

Not only is the answer, Yes:

http://docs.python.org/lib/module-uuid.html

but it's just featured as Doug Hellmann's module of the Week:

http://blog.doughellmann.com/2008/07/pymotw-uuid.html

TJG



More information about the Python-list mailing list