PEP 3134 -- Exception Chaining and Embedded Tracebacks
See original GitHub issueAlthough I can compile the code, it seems tokenizer does not understand the from statement in a raise clause as per PEP3134.
A dummy sample code :
try:
pass
except Exception as e:
raise NameError from e
IronPython throws syntax error:
File "", line 5
raise NameError from e
^
SyntaxError: unexpected token 'from'
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
PEP 3134 – Exception Chaining and Embedded Tracebacks
This PEP proposes three standard attributes on exception instances: the __context__ attribute for implicitly chained exceptions, the __cause__ ...
Read more >9seconds/pep3134: Exception Chaining and Embedded ... - GitHub
This library is intended to give you an ability to use exception chaining and embedded tracebacks with both Python 2 and Python 3...
Read more >'backporting PEP 3134 "Exception Chaining and Embedded ...
[prev in thread] [next in thread] List: python-list Subject: backporting PEP 3134 "Exception Chaining and Embedded Tracebacks" to Python 2.7 From: Piotr ...
Read more >Python: How to catch inner exception of exception chain?
Python 3 has a beautiful syntactic enhancement on exceptions handling. ... For more details, see PEP 3134 -- Exception Chaining and Embedded Tracebacks....
Read more >backporting PEP 3134 "Exception Chaining and Embedded ...
Hi! What is a chance of backporting PEP 3134 "Exception Chaining and Embedded Tracebacks" to Python 2.7? Regards, Piotr Dobrogost.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yep, we all try to to push project forward. Any help is very appreciated, so thank you!
Yes it seems the same, I did not notice it has already been raised.
By the way, I am very happy that support/development seems to be awakening as per Jeff posted on mailing list.