[issue11063] uuid.py module import has heavy side effects

Keith Dart report at bugs.python.org
Sat Jan 29 18:11:00 CET 2011


New submission from Keith Dart <keith.dart at gmail.com>:

When the uuid.py module is simply imported it has the side effect of forking a subprocess (/sbin/ldconfig) and doing a lot of stuff find a uuid implementation by ctypes. This is undesirable in many contexts. It would be better to perform those tasks on demand, when the first UUID is actually requested. In general, imports should avoid unnecessary system call side effects. This also makes testing easier.

----------
components: Library (Lib)
messages: 127442
nosy: Keith.Dart
priority: normal
severity: normal
status: open
title: uuid.py module import has heavy side effects
type: resource usage
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11063>
_______________________________________


More information about the Python-bugs-list mailing list