[issue30497] Line number of docstring in AST

2017-05-29 Thread Steven Myint
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

[issue30497] Line number of docstring in AST

2017-05-28 Thread Steven Myint
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

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2014-08-22 Thread Steven Myint
Changes by Steven Myint c...@stevenmyint.com: -- nosy: +myint ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8296 ___ ___ Python-bugs-list mailing

[issue21540] PEP 8 should recommend is not and not in

2014-05-20 Thread Steven Myint
Changes by Steven Myint c...@stevenmyint.com: -- nosy: +myint ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21540 ___ ___ Python-bugs-list mailing

[issue20980] In multiprocessing.pool, ExceptionWithTraceback should derive from Exception

2014-03-20 Thread Steven Myint
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

[issue20980] In multiprocessing.pool, ExceptionWithTraceback should derive from Exception

2014-03-19 Thread Steven Myint
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

[issue20980] In multiprocessing.pool, ExceptionWithTraceback should derive from Exception

2014-03-19 Thread Steven Myint
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