[Patches] [ python-Patches-1368955 ] UUID module for Python

SourceForge.net noreply at sourceforge.net
Wed Nov 30 12:54:34 CET 2005


Patches item #1368955, was opened at 2005-11-29 00:58
Message generated for change (Comment added) made by ping
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1368955&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Ka-Ping Yee (ping)
Assigned to: Nobody/Anonymous (nobody)
Summary: UUID module for Python

Initial Comment:
I recently tossed off a module to generate UUIDs
because i needed one.  Fredrik Lundh suggested i submit
it here for inclusion in the standard library.

See http://zesty.ca/python/uuid.html for a pydoc page.

The module provides a UUID class for representing UUIDs
and can generate version 1, 3, 4, or 5 UUIDs.

One drawback of the implementation is that it currently
runs external programs ("ipconfig" or "ifconfig") to
obtain the Ethernet hardware address used in a version
1 UUID.  The version 1 UUID implementation also does
not use persistent storage to determine the clock
sequence number.


----------------------------------------------------------------------

>Comment By: Ka-Ping Yee (ping)
Date: 2005-11-30 03:54

Message:
Logged In: YES 
user_id=45338

This update fixes the order of the bytes in a hash-generated
UUID.  With this fix, the interpretation of RFC 4122 is that
"octet 0" refers to the MOST significant octet, i.e. the one
printed on the left.

----------------------------------------------------------------------

Comment By: Ka-Ping Yee (ping)
Date: 2005-11-29 01:14

Message:
Logged In: YES 
user_id=45338

This update fixes __repr__ to return a proper expression
and adds the use of os.urandom (if available) to generate
randomness for version 4 UUIDs.

----------------------------------------------------------------------

Comment By: Ka-Ping Yee (ping)
Date: 2005-11-29 01:14

Message:
Logged In: YES 
user_id=45338

This update fixes __repr__ to return a proper expression
and adds the use of os.urandom (if available) to generate
randomness for version 4 UUIDs.

----------------------------------------------------------------------

Comment By: Ka-Ping Yee (ping)
Date: 2005-11-29 01:14

Message:
Logged In: YES 
user_id=45338

This update fixes __repr__ to return a proper expression
and adds the use of os.urandom (if available) to generate
randomness for version 4 UUIDs.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1368955&group_id=5470


More information about the Patches mailing list