Steven Myint added the comment:
I think what you guys have brought up makes sense.
Now that you mention it, I see that pyflakes gives the wrong line number if an
escaped newline appears after the doctests. Though, it works fine if the
escaped newline appears before it.
https://github.com
New submission from Steven Myint:
Since #29463, it is no longer obvious how to get the line number of a docstring
in the AST:
import ast
x = ast.parse('''\
def foo():
"""This is a docstring."""
''')
Changes by Steven Myint :
--
nosy: +myint
___
Python tracker
<http://bugs.python.org/issue8296>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Steven Myint :
--
nosy: +myint
___
Python tracker
<http://bugs.python.org/issue21540>
___
___
Python-bugs-list mailing list
Unsubscribe:
Steven Myint added the comment:
This bug was introduced in #13831.
--
versions: +Python 3.5
___
Python tracker
<http://bugs.python.org/issue20980>
___
___
Pytho
Steven Myint added the comment:
I didn't quite understand the multiprocessing test cases, but attached is a
standalone test case that reproduces the problem. The problem only shows up
when using ThreadPool.
$ python thread_pool_exception_test.py
Traceback (most recent call last):
New submission from Steven Myint:
In multiprocessing.pool, ExceptionWithTraceback is not derived from Exception.
Thus when it is raised, we get the exception, "TypeError: exceptions must
derive from BaseException". Attached is a patch that fixes this.
See below example traceback tha