This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, Keith.Dart, Michael.Felt,, berker.peksag, christian.heimes, eric.araujo, hynek, kdart, knny-myer, lukasz.langa, martin.panter, methane, nailor, ned.deily, nvetoshkin, orsenthil, pitrou, r.david.murray, serhiy.storchaka, skrah, vstinner
Date 2017-11-06.11:27:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

Unrelated to the patch (same before and after), this looks odd to me:

>>> import uuid
>>> uuid._has_uuid_generate_time_safe is None
>>> import _uuid
>>> _uuid.has_uuid_generate_time_safe

None means "not initialized yet". It's initialized on demand, at the first call of uuid1() or get_node():

$ python3
Python 3.7.0a2+ (heads/master:a5293b4ff2, Nov  6 2017, 12:22:04) 
>>> import uuid
>>> uuid._has_uuid_generate_time_safe  # == None
>>> uuid.uuid1()
>>> uuid._has_uuid_generate_time_safe

> [Also, I thought we weren't supposed to use ctypes in the stdlib.]

Antoine's commit a106aec2ed6ba171838ca7e6ba43c4e722bbecd1 avoids ctypes when libuuid is available.

For the other systems without libuuid, well, it was probably simpler to use ctypes. ctypes was more popular a few years ago. The code "just works" and I guess that nobody wants to touch it :-)
Date User Action Args
2017-11-06 11:27:45vstinnersetrecipients: + vstinner, orsenthil, kdart, pitrou, christian.heimes, ned.deily, eric.araujo, Arfrever, r.david.murray, methane, skrah, nvetoshkin, lukasz.langa, knny-myer, nailor, Keith.Dart, berker.peksag, hynek, martin.panter, serhiy.storchaka, Michael.Felt,
2017-11-06 11:27:44vstinnersetmessageid: <>
2017-11-06 11:27:44vstinnerlinkissue11063 messages
2017-11-06 11:27:44vstinnercreate