Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,

if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
This commit is contained in:
Serhiy Storchaka 2013-09-13 07:52:00 +03:00
parent 5d253efb06
commit b06f536cb7
3 changed files with 7 additions and 0 deletions

View File

@ -408,6 +408,8 @@ try:
_uuid_generate_random = lib.uuid_generate_random
if hasattr(lib, 'uuid_generate_time'):
_uuid_generate_time = lib.uuid_generate_time
if _uuid_generate_random is not None:
break # found everything we were looking for
# The uuid_generate_* functions are broken on MacOS X 10.5, as noted
# in issue #8621 the function generates the same sequence of values

View File

@ -970,6 +970,7 @@ Roy Smith
Rafal Smotrzyk
Dirk Soede
Paul Sokolovsky
Evgeny Sologubov
Cody Somerville
Clay Spence
Stefan Sperling

View File

@ -32,6 +32,10 @@ Core and Builtins
Library
-------
- Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
- Issue #14971: unittest test discovery no longer gets confused when a function
has a different __name__ than its name in the TestCase class dictionary.