[New-bugs-announce] [issue32201] Python uuids may not be persistent across time

Xavier de Gaye report at bugs.python.org
Sat Dec 2 10:44:11 EST 2017


New submission from Xavier de Gaye <xdegaye at 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 <report at bugs.python.org>
<https://bugs.python.org/issue32201>
_______________________________________


More information about the New-bugs-announce mailing list