|
54 | 54 |
|
55 | 55 | <body>
|
56 | 56 | <header>
|
57 |
| - <aside>May 27, 2023</aside> |
| 57 | + <aside>May 31, 2023</aside> |
58 | 58 | <a href="https://gto76.github.io" rel="author">Jure Šorn</a>
|
59 | 59 | </header>
|
60 | 60 |
|
|
1237 | 1237 | ├── SystemExit <span class="hljs-comment"># Raised by the sys.exit() function.</span>
|
1238 | 1238 | ├── KeyboardInterrupt <span class="hljs-comment"># Raised when the user hits the interrupt key (ctrl-c).</span>
|
1239 | 1239 | └── Exception <span class="hljs-comment"># User-defined exceptions should be derived from this class.</span>
|
1240 |
| - ├── ArithmeticError <span class="hljs-comment"># Base class for arithmetic errors.</span> |
1241 |
| - │ └── ZeroDivisionError <span class="hljs-comment"># Raised when dividing by zero.</span> |
| 1240 | + ├── ArithmeticError <span class="hljs-comment"># Base class for arithmetic errors such as ZeroDivisionError.</span> |
1242 | 1241 | ├── AssertionError <span class="hljs-comment"># Raised by `assert <exp>` if expression returns false value.</span>
|
1243 | 1242 | ├── AttributeError <span class="hljs-comment"># Raised when object doesn't have requested attribute/method.</span>
|
1244 | 1243 | ├── EOFError <span class="hljs-comment"># Raised by input() when it hits an end-of-file condition.</span>
|
|
1248 | 1247 | ├── MemoryError <span class="hljs-comment"># Out of memory. Could be too late to start deleting vars.</span>
|
1249 | 1248 | ├── NameError <span class="hljs-comment"># Raised when nonexistent name (variable/func/class) is used.</span>
|
1250 | 1249 | │ └── UnboundLocalError <span class="hljs-comment"># Raised when local name is used before it's being defined.</span>
|
1251 |
| - ├── OSError <span class="hljs-comment"># Errors such as FileExistsError/PermissionError (see Open).</span> |
| 1250 | + ├── OSError <span class="hljs-comment"># Errors such as FileExistsError/PermissionError (see #Open).</span> |
| 1251 | + │ └── ConnectionError <span class="hljs-comment"># Errors such as BrokenPipeError/ConnectionAbortedError.</span> |
1252 | 1252 | ├── RuntimeError <span class="hljs-comment"># Raised by errors that don't fall into other categories.</span>
|
| 1253 | + │ ├── NotImplementedErr <span class="hljs-comment"># Can be raised by abstract methods or by unfinished code.</span> |
1253 | 1254 | │ └── RecursionError <span class="hljs-comment"># Raised when the maximum recursion depth is exceeded.</span>
|
1254 | 1255 | ├── StopIteration <span class="hljs-comment"># Raised by next() when run on an empty iterator.</span>
|
1255 | 1256 | ├── TypeError <span class="hljs-comment"># Raised when an argument is of the wrong type.</span>
|
1256 | 1257 | └── ValueError <span class="hljs-comment"># When argument has the right type but inappropriate value.</span>
|
1257 |
| - └── UnicodeError <span class="hljs-comment"># Raised when encoding/decoding strings to/from bytes fails.</span> |
1258 | 1258 | </code></pre></div>
|
1259 | 1259 |
|
1260 | 1260 | <div><h4 id="collectionsandtheirexceptions">Collections and their exceptions:</h4><pre><code class="text language-text">┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓
|
@@ -2935,7 +2935,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
|
2935 | 2935 |
|
2936 | 2936 |
|
2937 | 2937 | <footer>
|
2938 |
| - <aside>May 27, 2023</aside> |
| 2938 | + <aside>May 31, 2023</aside> |
2939 | 2939 | <a href="https://gto76.github.io" rel="author">Jure Šorn</a>
|
2940 | 2940 | </footer>
|
2941 | 2941 |
|
|
0 commit comments