You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, “handling an exception” is defined as “executing or having executed an except clause.” For any stack frame, only information about the most recently handled exception is accessible.
Here, “handling an exception” is defined as “executing an except clause.” For any stack frame, only information about the exception being currently handled is accessible.
To make the difference highlighted, I suggest to document the sys.exc_info behaviour difference in Cheat Sheets or in an appropriate page.
The text was updated successfully, but these errors were encountered:
The following snippet produces different output between python 2 & 3
Output
Though the behaviour difference is documented, it is too subtle to notice the difference
https://docs.python.org/2/library/sys.html
https://docs.python.org/3/library/sys.html
To make the difference highlighted, I suggest to document the
sys.exc_info
behaviour difference in Cheat Sheets or in an appropriate page.The text was updated successfully, but these errors were encountered: