Browse Source

Exceptions

pull/86/head
Jure Šorn 4 years ago
parent
commit
74644c24f1
3 changed files with 3 additions and 3 deletions
  1. 2
      README.md
  2. 2
      index.html
  3. 2
      parse.js

2
README.md

@ -1429,8 +1429,8 @@ BaseException
+-----------+------------+------------+------------+ +-----------+------------+------------+------------+
| | List | Set | Dict | | | List | Set | Dict |
+-----------+------------+------------+------------+ +-----------+------------+------------+------------+
| pop() | IndexError | KeyError | KeyError |
| getitem() | IndexError | | KeyError | | getitem() | IndexError | | KeyError |
| pop() | IndexError | KeyError | KeyError |
| remove() | ValueError | KeyError | | | remove() | ValueError | KeyError | |
| index() | ValueError | | | | index() | ValueError | | |
+-----------+------------+------------+------------+ +-----------+------------+------------+------------+

2
index.html

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

2
parse.js

@ -236,8 +236,8 @@ const DIAGRAM_8_B =
'┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓\n' + '┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓\n' +
'┃ │ List │ Set │ Dict ┃\n' + '┃ │ List │ Set │ Dict ┃\n' +
'┠───────────┼────────────┼────────────┼────────────┨\n' + '┠───────────┼────────────┼────────────┼────────────┨\n' +
'┃ pop() │ IndexError │ KeyError │ KeyError ┃\n' +
'┃ getitem() │ IndexError │ │ KeyError ┃\n' + '┃ getitem() │ IndexError │ │ KeyError ┃\n' +
'┃ pop() │ IndexError │ KeyError │ KeyError ┃\n' +
'┃ remove() │ ValueError │ KeyError │ ┃\n' + '┃ remove() │ ValueError │ KeyError │ ┃\n' +
'┃ index() │ ValueError │ │ ┃\n' + '┃ index() │ ValueError │ │ ┃\n' +
'┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛\n'; '┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛\n';

Loading…
Cancel
Save