question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PEP 3134 -- Exception Chaining and Embedded Tracebacks

See original GitHub issue

Although 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:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
simplicbecommented, Jul 13, 2016

Yep, we all try to to push project forward. Any help is very appreciated, so thank you!

1reaction
lafrankcommented, Jul 13, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found