Browse Source
bpo-5001: More-informative multiprocessing error messages (#3079)
bpo-5001: More-informative multiprocessing error messages (#3079)
* Make error message more informative Replace assertions in error-reporting code with more-informative version that doesn't cause confusion over where and what the error is. * Additional clarification + get travis to check * Change from SystemError to TypeError As suggested in PR comment by @pitrou, changing from SystemError; TypeError appears appropriate. * NEWS file installation; ACKS addition (will do my best to justify it by additional work) * Making current AssertionErrors in multiprocessing more informative * Blurb added re multiprocessing managers.py, queues.py cleanup * Further multiprocessing cleanup - went through pool.py * Fix two asserts in multiprocessing/util.py * Most asserts in multiprocessing more informative * Didn't save right version * Further work on multiprocessing error messages * Correct typo * Correct typo v2 * Blasted colon... serves me right for trying to work on two things at once * Simplify NEWS entry * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst OK, never mind. * Corrected (thanks to pitrou) error messages for notify * Remove extraneous backslash in docstring.pull/3239/head
committed by
Antoine Pitrou
15 changed files with 120 additions and 39 deletions
-
8Lib/multiprocessing/connection.py
-
5Lib/multiprocessing/dummy/__init__.py
-
12Lib/multiprocessing/forkserver.py
-
15Lib/multiprocessing/heap.py
-
54Lib/multiprocessing/managers.py
-
28Lib/multiprocessing/pool.py
-
2Lib/multiprocessing/popen_fork.py
-
6Lib/multiprocessing/queues.py
-
5Lib/multiprocessing/reduction.py
-
2Lib/multiprocessing/resource_sharer.py
-
3Lib/multiprocessing/semaphore_tracker.py
-
2Lib/multiprocessing/spawn.py
-
7Lib/multiprocessing/synchronize.py
-
9Lib/multiprocessing/util.py
-
1Misc/NEWS.d/next/Library/2017-08-18-17-16-38.bpo-5001.gwnthq.rst
@ -0,0 +1 @@ |
|||
Many asserts in `multiprocessing` are now more informative, and some error types have been changed to more specific ones. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue