Created
May 11, 2016 12:36
-
-
Save justinfay/3692002a47e6b275652bcc9baa6d895a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Python3 | |
| >>> try: | |
| ... raise ValueError() | |
| ... except ValueError: | |
| ... raise IndexError() | |
| ... | |
| Traceback (most recent call last): | |
| File "<stdin>", line 2, in <module> | |
| ValueError | |
| During handling of the above exception, another exception occurred: | |
| Traceback (most recent call last): | |
| File "<stdin>", line 4, in <module> | |
| IndexError | |
| >>> | |
| # Python2> | |
| >> try: | |
| ... raise ValueError() | |
| ... except ValueError: | |
| ... raise IndexError() | |
| ... | |
| Traceback (most recent call last): | |
| File "<stdin>", line 4, in <module> | |
| IndexError | |
| >>> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment