New submission from Keith Dart <keith.d...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11063>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to