New submission from Xavier de Gaye <xdeg...@gmail.com>:

UUIDs are unique and persistent across time and space.

UUIDs generated using the getnode() function of the uuid module on a plaform 
where getnode() cannot use the MAC address are based on a random number created 
for that purpose and are therefore transient and only valid during the life 
time of the python process. This seems to be a bug.

My understanding of RFC 4122 is that in that case, the random number is 
generated only once, otherwise the usefulness of this method is not obvious. In 
any case the user should be made aware of the transientness of the result of 
getnode() since persistency is a key feature of UUIDs.

----------
components: Library (Lib)
messages: 307435
nosy: barry, ned.deily, serhiy.storchaka, vstinner, xdegaye
priority: normal
severity: normal
status: open
title: Python uuids may not be persistent across time
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32201>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to