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."""
''')
# In Python 3.6, the d
Changes by Steven Myint c...@stevenmyint.com:
--
nosy: +myint
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8296
___
___
Python-bugs-list mailing
Changes by Steven Myint c...@stevenmyint.com:
--
nosy: +myint
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21540
___
___
Python-bugs-list mailing
Steven Myint added the comment:
This bug was introduced in #13831.
--
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20980
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 that prompted
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):
File