[Python-checkins] cpython (merge 3.5 -> default): Issue #21201: Improves readability of multiprocessing error message from server
davin.potts
python-checkins at python.org
Thu Sep 8 15:47:46 EDT 2016
https://hg.python.org/cpython/rev/199aca18d9a1
changeset: 103350:199aca18d9a1
parent: 103348:38802c38cfe1
parent: 103349:9b1f8c68de4c
user: Davin Potts <python at discontinuity.net>
date: Thu Sep 08 14:47:23 2016 -0500
summary:
Issue #21201: Improves readability of multiprocessing error message from server to client for certain exceptions
files:
Lib/multiprocessing/managers.py | 2 +-
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -283,7 +283,7 @@
try:
send(msg)
except Exception as e:
- send(('#UNSERIALIZABLE', repr(msg)))
+ send(('#UNSERIALIZABLE', format_exc()))
except Exception as e:
util.info('exception in thread serving %r',
threading.current_thread().name)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -248,6 +248,9 @@
- Issue #6766: Distributed reference counting added to multiprocessing
to support nesting of shared values / proxy objects.
+- Issue #21201: Improves readability of multiprocessing error message. Thanks
+ to Wojciech Walczak for patch.
+
C API
-----
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list