guid

Aahz Maruch aahz at panix.com
Sat Aug 11 20:39:03 EDT 2001


In article <jH0d7.154776$%a.6729348 at news1.rdc1.sdca.home.com>,
Mark McEahern <marklists at mceahern.com> wrote:
>
>Has anybody implemented a platform neutral way of generating unique ids (ala
>the COM guid) in Python?

There isn't and can't be one.  Part of the GUID spec is that you're
supposed to use the MAC address of a machine's networking card.  There
are all kinds of ways one could make GUID-like objects, particularly if
you could restrict the "global" to a single machine -- but it's not the
same thing.  (And before anyone asks: no, IP address is *NOT*
sufficient.)
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

Internet $tartup$: Arbeit ueber alles  



More information about the Python-list mailing list