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
{{ message }}
Repository navigation
Commit 9f58ac9
Browse filesBrowse the repository at this point in the historyBrowse files
Philip Guo
committed
improved handling of exceptions and got namedtuple working!
Copy file name to clipboardExpand all lines: v3/example-code/nonlocal.golden
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"code": "# 'nonlocal' keyword is only in Python 3\ndef outer():\n x = 1\n def inner():\n nonlocal x\n x = 2\n y = x\n print(\"inner:\", x, y)\n inner()\n print(\"outer:\", x)\n\nouter()\n",
3
3
"trace": [
4
4
{
5
-
"exception_msg": "Error: invalid syntax",
5
+
"exception_msg": "SyntaxError: invalid syntax (<string>, line 5)",
alert("Whoa, unknown error! Reload to try again, or report a bug to philip@pgbovine.net\n\n(Click the 'Generate URL' button to include a unique URL in your email bug report.)");
0 commit comments