[issue9130] Parser module fails on short relative imports
Mark Dickinson dicki...@gmail.com added the comment: Fixed in revisions r82543, r82546, r82552, r82553, r82554. Leaving open because I'm suspicious that the parser module isn't handling relative imports with more than three dots correctly in py3k (since ... gets parsed as an ellipsis token). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9130 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9130] Parser module fails on short relative imports
Mark Dickinson dicki...@gmail.com added the comment: Ellipsis token validation fixed in r82555 (py3k), r82556 (release31-maint). -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9130 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9130] Parser module fails on short relative imports
New submission from Mark Dickinson dicki...@gmail.com: Python 2.7rc2+ (trunk:82399M, Jun 30 2010, 17:10:13) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type help, copyright, credits or license for more information. import parser [35303 refs] parser.sequence2st(parser.suite(from . import me).totuple()) Traceback (most recent call last): File stdin, line 1, in module parser.ParserError: VALIDATION FAILURE: report this to the maintainer! [35341 refs] Patch attached. -- assignee: mark.dickinson components: Extension Modules files: parser_relative_imports.patch keywords: patch messages: 109006 nosy: mark.dickinson priority: normal severity: normal stage: commit review status: open title: Parser module fails on short relative imports type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file17821/parser_relative_imports.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9130 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9130] Parser module fails on short relative imports
Mark Dickinson dicki...@gmail.com added the comment: With this patch, and the one in issue 9128, the parser module roundtrips correctly on all Lib/*.py and all Lib/test/*.py files (except for Lib/test/bad*.py). Tested by doing: ./python.exe Demo/parser/test_parser.py Lib/*.py and ./python.exe Demo/parser/test_parser.py Lib/test/*.py (the latter after deleting the Lib/test/bad*.py files) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9130 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com