[Python-checkins] cpython (3.5): Issue #21201: Improves readability of multiprocessing error message from server

davin.potts python-checkins at python.org
Thu Sep 8 15:47:45 EDT 2016


https://hg.python.org/cpython/rev/9b1f8c68de4c
changeset:   103349:9b1f8c68de4c
branch:      3.5
parent:      103334:e1987bf14148
user:        Davin Potts <python at discontinuity.net>
date:        Thu Sep 08 14:40:36 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
@@ -275,7 +275,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
@@ -221,6 +221,9 @@
 - Issue #27930: Improved behaviour of logging.handlers.QueueListener.
   Thanks to Paulo Andrade and Petr Viktorin for the analysis and patch.
 
+- Issue #21201: Improves readability of multiprocessing error message.  Thanks
+  to Wojciech Walczak for patch.
+
 IDLE
 ----
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list