Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14701] parser module doesn't support 'raise ... from'

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Apr 30, 2012, 11:55 AM

Post #1 of 7 (76 views)
Permalink
[issue14701] parser module doesn't support 'raise ... from'

New submission from Mark Dickinson <dickinsm [at] gmail>:

>>> import parser
>>> parser.tuple2st(parser.expr('raise exc from e'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1
raise exc from e

----------
messages: 159724
nosy: mark.dickinson
priority: normal
severity: normal
stage: needs patch
status: open
title: parser module doesn't support 'raise ... from'
type: behavior
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 30, 2012, 11:58 AM

Post #2 of 7 (68 views)
Permalink
[issue14701] parser module doesn't support 'raise ... from' [In reply to]

Mark Dickinson <dickinsm [at] gmail> added the comment:

Patch attached.

----------
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file25429/parser_yieldfrom.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 30, 2012, 9:32 PM

Post #3 of 7 (65 views)
Permalink
[issue14701] parser module doesn't support 'raise ... from' [In reply to]

Changes by Meador Inge <meadori [at] gmail>:


----------
nosy: +meador.inge

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 4, 2012, 11:22 AM

Post #4 of 7 (61 views)
Permalink
[issue14701] parser module doesn't support 'raise ... from' [In reply to]

Terry J. Reedy <tjreedy [at] udel> added the comment:

Just curious, should "The parser module provides an interface to Python’s internal parser and byte-code compiler." say "CPython's"?

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 4, 2012, 11:25 AM

Post #5 of 7 (63 views)
Permalink
[issue14701] parser module doesn't support 'raise ... from' [In reply to]

Mark Dickinson <dickinsm [at] gmail> added the comment:

Hmm. Possibly, yes. At least, it should be clear somehow from the docs that the parser, symbol, token and ast modules are CPython specific. (And possibly tokenize, too.)

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 7, 2012, 4:03 AM

Post #6 of 7 (57 views)
Permalink
[issue14701] parser module doesn't support 'raise ... from' [In reply to]

Roundup Robot <devnull [at] psf> added the comment:

New changeset fc17f70292f6 by Mark Dickinson in branch '3.2':
Issue #14701: Add missing support for 'raise ... from' in parser module.
http://hg.python.org/cpython/rev/fc17f70292f6

New changeset 0dd0d56bdcc1 by Mark Dickinson in branch 'default':
Issue #14701: Merge fix from 3.2.
http://hg.python.org/cpython/rev/0dd0d56bdcc1

----------
nosy: +python-dev

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 7, 2012, 4:07 AM

Post #7 of 7 (57 views)
Permalink
[issue14701] parser module doesn't support 'raise ... from' [In reply to]

Mark Dickinson <dickinsm [at] gmail> added the comment:

Now fixed.

Terry: I suggest opening a separate doc issue for the 'CPython-specific' issue

----------
assignee: -> mark.dickinson
components: +Library (Lib)
resolution: -> fixed
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.