[Python-checkins] cpython (2.7): Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
serhiy.storchaka
python-checkins at python.org
Fri Sep 13 07:09:18 CEST 2013
http://hg.python.org/cpython/rev/6d8a5cbb94c9
changeset: 85669:6d8a5cbb94c9
branch: 2.7
parent: 85664:07fbc1aec77c
user: Serhiy Storchaka <storchaka at gmail.com>
date: Fri Sep 13 07:52:00 2013 +0300
summary:
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.
files:
Lib/uuid.py | 2 ++
Misc/ACKS | 1 +
Misc/NEWS | 4 ++++
3 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Lib/uuid.py b/Lib/uuid.py
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -408,6 +408,8 @@
_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
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -970,6 +970,7 @@
Rafal Smotrzyk
Dirk Soede
Paul Sokolovsky
+Evgeny Sologubov
Cody Somerville
Clay Spence
Stefan Sperling
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,10 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list