How to create GUID UUID like with pythoncom.CreateGuid

Aahz Maruch aahz at
Wed Dec 20 20:38:45 EST 2000

In article <3a4136bb.2555949 at>,
Georg Gogo. BERNHARD <gogo at> wrote:
>The algorithm should be platform independend which means that  a
>python only solution is needed. I am starting to think that that is
>impossible without extending python with some C / C++ functions that
>have to be compiled on every platform they are needed, because the MAC
>adress of a compuiter is part of the GUID, and there is no way to get
>it in python.

I think it does need to be a C extension.  Microsoft is simply using the
OSF DCE GUID/UUID spec.  While there are ways of creating a GUID in the
absence of a MAC (for machines without a network card), I'd suggest that
it probably makes more sense to just rip off the standard algorithm if
you can find it.  There may be a GNU library somewhere.
                      --- Aahz (Copyright 2000 by aahz at

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6

I don't really mind a person having the last whine, but I do mind
someone else having the last self-righteous whine.  --Aahz

More information about the Python-list mailing list