[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Benjamin. Applied in r82400 (trunk) and r82401 (release26-maint). -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Go ahead. -- stage: commit review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch, LBYL instead of EAFP flavour. Oh, and this one actually compiles, too. -- Added file: http://bugs.python.org/file17818/issue9125_v2.patch ___ Python tracker ___

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a fix. Benjamin, is this okay for 2.7, or should it wait for 2.7.1? -- nosy: +benjamin.peterson Added file: http://bugs.python.org/file17817/issue9125.patch ___ Python tracker

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: Minimal steps to reproduce: Python 2.7rc2+ (trunk:82378M, Jun 29 2010, 19:43:46) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import parser >>> parser.sequence2st(parser.suite("try: pa

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file17814/parser_except_as_bug.patch ___ Python tracker ___ ___ Python-bugs-li

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Mark Dickinson added the comment: Here's the correct test patch. -- Added file: http://bugs.python.org/file17815/parser_except_as_bug.patch ___ Python tracker ___ ___

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
Changes by Mark Dickinson : -- components: +Library (Lib) stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-b

[issue9125] parser module doesn't like except-as syntax.

2010-06-30 Thread Mark Dickinson
New submission from Mark Dickinson : There seems to be a parser module bug for the except-as syntax in Python 2.7. After applying the attached patch (which adds a test to test_parser), and running test_parser, I get: == FAIL