UUID implementation in Python

Jo Vermeulen jo at lumumba.luc.ac.be
Thu Apr 21 23:13:09 BST 2005


Hello,

I noticed a comment in osutils.py:

def uuid():
     """Return a new UUID"""

     ## XXX: Could alternatively read /proc/sys/kernel/random/uuid on
     ## Linux, but we need something portable for other systems;
     ## preferably an implementation in Python.

A Python implementation is provided in the Python Cookbook:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/213761

Although a comment says it's not perfect :-s But maybe it could be used 
(for the moment) by bzr? Don't know what's the license of this code 
though.

Kind regards,

-- 
Jo Vermeulen <jo at lumumba.luc.ac.be>
http://lumumba.luc.ac.be/jo/





More information about the bazaar mailing list