UUID implementation in Python

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


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:


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 

Kind regards,

Jo Vermeulen <jo at lumumba.luc.ac.be>

More information about the bazaar mailing list