[issue23400] Inconsistent behaviour of multiprocessing.Queue() if sem_open is not implemented

Serhiy Storchaka report at bugs.python.org
Fri Mar 6 13:09:53 CET 2015


Serhiy Storchaka added the comment:

But if this change is worth, I would write it as

-            maxsize = _multiprocessing.SemLock.SEM_VALUE_MAX
+            # Can raise ImportError (see issues #3770 and #23400)
+            from .synchronize import SEM_VALUE_MAX as maxsize

This would avoid a duplication of the error message.

----------

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


More information about the Python-bugs-list mailing list