[issue32201] Python uuids may not be persistent across time

2017-12-02 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

Hum, I misunderstood the meaning of persistency in this context. It is the 
uniqueness that is persistent. Sorry for the noise, closing now.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32201] Python uuids may not be persistent across time

2017-12-02 Thread Xavier de Gaye

New submission from Xavier de Gaye :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com