|
934 | 934 | "result": [ |
935 | 935 | { |
936 | 936 | "color": "red", |
937 | | - "text": " print('---')\n ^\nIndentationError: unindent does not match any outer indentation level\nat line 3\n\nAn `IndentationError` occurs when a given line of code is\nnot indented (aligned vertically with other lines) as expected.\n\nThe line identified above is less indented than expected.\n\n" |
| 937 | + "text": " print('---')\n ^\nIndentationError: unindent does not match any outer indentation level\nat line 3\n\nAn `IndentationError` occurs when a given line of code is\nnot indented (aligned vertically with other lines) as expected.\n\nThe line identified above is less indented than expected.\n\n" |
938 | 938 | }, |
939 | 939 | { |
940 | 940 | "color": "red", |
|
2685 | 2685 | "result": [ |
2686 | 2686 | { |
2687 | 2687 | "color": "red", |
2688 | | - "text": "SyntaxError: expression cannot contain assignment, perhaps you meant \"==\"?\nat line 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nOne of the following two possibilities could be the cause:\n1. You meant to do a comparison with == and wrote = instead.\n2. You called a function with a named argument:\n\n a_function(invalid=...)\n\nwhere `invalid` is not a valid identifier (variable name) in Python\neither because it starts with a number, or is a string,\nor contains a period, etc.\n\n\n" |
| 2688 | + "text": " print(1 + 2 = 3)\n ^\nSyntaxError: expression cannot contain assignment, perhaps you meant \"==\"?\nat line 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nOne of the following two possibilities could be the cause:\n1. You meant to do a comparison with == and wrote = instead.\n2. You called a function with a named argument:\n\n a_function(invalid=...)\n\nwhere `invalid` is not a valid identifier (variable name) in Python\neither because it starts with a number, or is a string,\nor contains a period, etc.\n\n\n" |
2689 | 2689 | }, |
2690 | 2690 | { |
2691 | 2691 | "color": "red", |
|
3517 | 3517 | ] |
3518 | 3518 | } |
3519 | 3519 | ], |
3520 | | - "friendly": "<p>An <code>IndexError</code> occurs when you are try to get an item from a list,\na tuple, or a similar object (sequence), by using an index which\ndoes not exists; typically, this is because the index you give\nis greater than the length of the sequence.</p>\n<p>You have tried to get the item with index <code>4</code> of <code>words</code>,\na <code>list</code> of length <code>4</code>.\nThe largest valid index of <code>words</code> is <code>3</code>.</p>", |
| 3520 | + "friendly": "<p>An <code>IndexError</code> occurs when you are try to get an item from a list,\na tuple, or a similar object (sequence), by using an index which\ndoes not exists; typically, this is because the index you give\nis greater than the length of the sequence.</p>\n<p>Internal error for Friendly-traceback.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>", |
3521 | 3521 | "tail": "" |
3522 | 3522 | } |
3523 | 3523 | ] |
|
4125 | 4125 | ] |
4126 | 4126 | } |
4127 | 4127 | ], |
4128 | | - "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>The parenthesis <code>()</code> following <code>f</code> are interpreted\nby Python as a function call for <code>f</code>.\nHowever, <code>f</code> is not a function but an object of type <code>str</code>.</p>", |
| 4128 | + "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>Internal error for Friendly-traceback.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>", |
4129 | 4129 | "tail": "" |
4130 | 4130 | } |
4131 | 4131 | ] |
|
4226 | 4226 | ] |
4227 | 4227 | } |
4228 | 4228 | ], |
4229 | | - "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>No information is known about this exception.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>\n<p>If you are using the Friendly console, use <code>www()</code> to\ndo an Internet search for this particular case.</p>", |
| 4229 | + "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>Internal error for Friendly-traceback.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>", |
4230 | 4230 | "tail": "" |
4231 | 4231 | } |
4232 | 4232 | ] |
|
4316 | 4316 | ] |
4317 | 4317 | } |
4318 | 4318 | ], |
4319 | | - "friendly": "<p>An <code>AttributeError</code> occurs when the code contains something like\n <code>object.x</code>\nand <code>x</code> is not a method or attribute (variable) belonging to <code>object</code>.</p>\n<p>The object <code>word</code> has no attribute named <code>append</code>.\nThe following are some of its known attributes:\n<code>capitalize, casefold, center, count, encode, endswith, expandtabs, find, format, ...</code>.</p>", |
| 4319 | + "friendly": "<p>An <code>AttributeError</code> occurs when the code contains something like\n <code>object.x</code>\nand <code>x</code> is not a method or attribute (variable) belonging to <code>object</code>.</p>\n<p>Internal error for Friendly-traceback.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>", |
4320 | 4320 | "tail": "" |
4321 | 4321 | } |
4322 | 4322 | ] |
|
5038 | 5038 | "variables": [] |
5039 | 5039 | } |
5040 | 5040 | ], |
5041 | | - "friendly": "<p>An <code>AttributeError</code> occurs when the code contains something like\n <code>object.x</code>\nand <code>x</code> is not a method or attribute (variable) belonging to <code>object</code>.</p>\n<p>The object <code>'Python'</code> has no attribute named <code>append</code>.\nThe following are some of its known attributes:\n<code>capitalize, casefold, center, count, encode, endswith, expandtabs, find, format, ...</code>.</p>", |
| 5041 | + "friendly": "<p>An <code>AttributeError</code> occurs when the code contains something like\n <code>object.x</code>\nand <code>x</code> is not a method or attribute (variable) belonging to <code>object</code>.</p>\n<p>Internal error for Friendly-traceback.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>", |
5042 | 5042 | "tail": "" |
5043 | 5043 | } |
5044 | 5044 | ] |
|
5158 | 5158 | "result": [ |
5159 | 5159 | { |
5160 | 5160 | "color": "white", |
5161 | | - "text": "['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']" |
| 5161 | + "text": "['__add__', '__class__', '__class_getitem__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']" |
5162 | 5162 | }, |
5163 | 5163 | { |
5164 | 5164 | "color": "white", |
|
5425 | 5425 | ] |
5426 | 5426 | } |
5427 | 5427 | ], |
5428 | | - "friendly": "<p>An <code>IndexError</code> occurs when you are try to get an item from a list,\na tuple, or a similar object (sequence), by using an index which\ndoes not exists; typically, this is because the index you give\nis greater than the length of the sequence.</p>", |
| 5428 | + "friendly": "<p>An <code>IndexError</code> occurs when you are try to get an item from a list,\na tuple, or a similar object (sequence), by using an index which\ndoes not exists; typically, this is because the index you give\nis greater than the length of the sequence.</p>\n<p>Internal error for Friendly-traceback.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>", |
5429 | 5429 | "tail": "" |
5430 | 5430 | } |
5431 | 5431 | ] |
|
5797 | 5797 | ] |
5798 | 5798 | } |
5799 | 5799 | ], |
5800 | | - "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>You tried to concatenate (add) two different types of objects:\na string (<code>str</code>) and an integer (<code>int</code>).</p>", |
| 5800 | + "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>Internal error for Friendly-traceback.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>", |
5801 | 5801 | "tail": "" |
5802 | 5802 | } |
5803 | 5803 | ] |
|
6107 | 6107 | "variables": [] |
6108 | 6108 | } |
6109 | 6109 | ], |
6110 | | - "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>You tried to add two incompatible types of objects:\nan integer (<code>int</code>) and a string (<code>str</code>).</p>", |
| 6110 | + "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>Internal error for Friendly-traceback.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>", |
6111 | 6111 | "tail": "" |
6112 | 6112 | } |
6113 | 6113 | ] |
|
14998 | 14998 | "result": [ |
14999 | 14999 | { |
15000 | 15000 | "color": "red", |
15001 | | - "text": " is_friend = name == \"Alice\" or\n ^\nSyntaxError: invalid syntax\nat line 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nCurrently, I cannot guess the likely cause of this error.\nTry to examine closely the line indicated as well as the line\nimmediately above to see if you can identify some misspelled\nword, or missing symbols, like (, ), [, ], :, etc.\n\nUnless your code uses type annotations, which are beyond our scope,\nif you think that this is something which should be handled\nby Friendly-traceback, please report this case to\nhttps://github.com/aroberge/friendly-traceback/issues\n\n\n" |
| 15001 | + "text": " is_friend = name == \"Alice\" or\n ^\nSyntaxError: invalid syntax\nat line 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nCurrently, I cannot guess the likely cause of this error.\nTry to examine closely the line indicated as well as the line\nimmediately above to see if you can identify some misspelled\nword, or missing symbols, like (, ), [, ], :, etc.\n\nUnless your code uses type annotations, which are beyond our scope,\nif you think that this is something which should be handled\nby Friendly-traceback, please report this case to\nhttps://github.com/aroberge/friendly-traceback/issues\n\n\n" |
15002 | 15002 | }, |
15003 | 15003 | { |
15004 | 15004 | "color": "red", |
|
15515 | 15515 | "result": [ |
15516 | 15516 | { |
15517 | 15517 | "color": "red", |
15518 | | - "text": " \"XOX\n ^\nSyntaxError: EOL while scanning string literal\nat line 7\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nYou started writing a string with a single or double quote\nbut never ended the string with another quote on that line.\n\n" |
| 15518 | + "text": " \"XOX\n ^\nSyntaxError: EOL while scanning string literal\nat line 7\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nYou started writing a string with a single or double quote\nbut never ended the string with another quote on that line.\n\n" |
15519 | 15519 | }, |
15520 | 15520 | { |
15521 | 15521 | "color": "red", |
|
15995 | 15995 | "variables": [] |
15996 | 15996 | } |
15997 | 15997 | ], |
15998 | | - "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>You tried to add two incompatible types of objects:\nan integer (<code>int</code>) and a string (<code>str</code>).\nPerhaps you forgot to convert the string <code>'34'</code> into an integer (<code>int</code>).</p>", |
| 15998 | + "friendly": "<p>A <code>TypeError</code> is usually caused by trying\nto combine two incompatible types of objects,\nby calling a function with the wrong type of object,\nor by trying to do an operation not allowed on a given type of object.</p>\n<p>Internal error for Friendly-traceback.\nPlease report this example to\nhttps://github.com/aroberge/friendly-traceback/issues</p>", |
15999 | 15999 | "tail": "" |
16000 | 16000 | } |
16001 | 16001 | ] |
|
0 commit comments