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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

STINNER Victor

New submission from Mark Dickinson <[hidden email]>:

>>> 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 <[hidden email]>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%2B1322467933539-512619%40n6.nabble.com

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

STINNER Victor

Mark Dickinson <[hidden email]> added the comment:

Patch attached.

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

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%2B1322467933539-512619%40n6.nabble.com

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

STINNER Victor
In reply to this post by STINNER Victor

Changes by Meador Inge <[hidden email]>:


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

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue14701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%2B1322467933539-512619%40n6.nabble.com

Loading...