Browse Source

Exceptions

pull/86/head
Jure Šorn 3 years ago
parent
commit
f3e8b2c249
3 changed files with 10 additions and 10 deletions
  1. 6
      README.md
  2. 6
      index.html
  3. 8
      parse.js

6
README.md

@ -1427,11 +1427,11 @@ BaseException
#### Collections and their exceptions:
```text
+-----------+------------+------------+------------+
| | list | dict | set |
| | List | Set | Dict |
+-----------+------------+------------+------------+
| getitem() | IndexError | KeyError | |
| pop() | IndexError | KeyError | KeyError |
| remove() | ValueError | | KeyError |
| getitem() | IndexError | | KeyError |
| remove() | ValueError | KeyError | |
| index() | ValueError | | |
+-----------+------------+------------+------------+
```

6
index.html

@ -1367,11 +1367,11 @@ error_msg = <span class="hljs-string">''</span>.join(traceback.format_exception(
</code></pre></div>
<div><h4 id="collectionsandtheirexceptions">Collections and their exceptions:</h4><pre><code class="text language-text">┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓
┃ │ list │ dict │ set
┃ │ List │ Set │ Dict
┠───────────┼────────────┼────────────┼────────────┨
┃ getitem() │ IndexError │ KeyError │ ┃
┃ pop() │ IndexError │ KeyError │ KeyError ┃
┃ remove() │ ValueError │ │ KeyError ┃
┃ getitem() │ IndexError │ │ KeyError ┃
┃ remove() │ ValueError │ KeyError │ ┃
┃ index() │ ValueError │ │ ┃
┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛
</code></pre></div>

8
parse.js

@ -229,16 +229,16 @@ const DIAGRAM_7_B =
const DIAGRAM_8_A =
'+-----------+------------+------------+------------+\n' +
'| | list | dict | set |\n' +
'| | List | Set | Dict |\n' +
'+-----------+------------+------------+------------+\n';
const DIAGRAM_8_B =
'┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓\n' +
'┃ │ list │ dict │ set ┃\n' +
'┃ │ List │ Set │ Dict ┃\n' +
'┠───────────┼────────────┼────────────┼────────────┨\n' +
'┃ getitem() │ IndexError │ KeyError │ ┃\n' +
'┃ pop() │ IndexError │ KeyError │ KeyError ┃\n' +
'┃ remove() │ ValueError │ │ KeyError ┃\n' +
'┃ getitem() │ IndexError │ │ KeyError ┃\n' +
'┃ remove() │ ValueError │ KeyError │ ┃\n' +
'┃ index() │ ValueError │ │ ┃\n' +
'┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛\n';

Loading…
Cancel
Save