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

davin.potts python-checkins at python.org
Thu Sep 8 14:07:39 EDT 2016


https://hg.python.org/cpython/rev/cbf81969aba4
changeset:   103327:cbf81969aba4
branch:      2.7
parent:      103296:3f04287e7bea
user:        Davin Potts <python at discontinuity.net>
date:        Thu Sep 08 13:07:13 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
@@ -287,7 +287,7 @@
                 try:
                     send(msg)
                 except Exception, e:
-                    send(('#UNSERIALIZABLE', repr(msg)))
+                    send(('#UNSERIALIZABLE', format_exc()))
             except Exception, 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
@@ -125,6 +125,9 @@
 
 - Issue #25455: Fixed a crash in repr of cElementTree.Element with recursive tag.
 
+- 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