Skip to content

Commit abeffbe

Browse files
committed
Exceptions
1 parent 3a32e80 commit abeffbe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ class Counter:
11461146
```
11471147

11481148
#### Python has many different iterator objects:
1149-
* **Iterators returned by the [iter()](#iterator) function, such as list\_iterator and set\_iterator.**
1149+
* **Objects returned by the [iter()](#iterator) function, such as list\_iterator and set\_iterator.**
11501150
* **Objects returned by the [itertools](#itertools) module, such as count, repeat and cycle.**
11511151
* **Generators returned by the [generator functions](#generator) and [generator expressions](#comprehension).**
11521152
* **File objects returned by the [open()](#open) function, etc.**
@@ -1404,7 +1404,6 @@ BaseException
14041404
+-- SystemExit # Raised by the sys.exit() function.
14051405
+-- KeyboardInterrupt # Raised when the user hits the interrupt key (ctrl-c).
14061406
+-- Exception # User-defined exceptions should be derived from this class.
1407-
+-- StopIteration # Raised by next() when run on an empty iterator.
14081407
+-- ArithmeticError # Base class for arithmetic errors.
14091408
| +-- ZeroDivisionError # Raised when dividing by zero.
14101409
+-- AttributeError # Raised when an attribute is missing.
@@ -1417,6 +1416,7 @@ BaseException
14171416
| +-- FileNotFoundError # When a file or directory is requested but doesn't exist.
14181417
+-- RuntimeError # Raised by errors that don't fall in other categories.
14191418
| +-- RecursionError # Raised when the maximum recursion depth is exceeded.
1419+
+-- StopIteration # Raised by next() when run on an empty iterator.
14201420
+-- TypeError # Raised when an argument is of wrong type.
14211421
+-- ValueError # When an argument is of right type but inappropriate value.
14221422
+-- UnicodeError # Raised when encoding/decoding strings from/to bytes fails.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@
10931093
(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>)
10941094
</code></pre>
10951095
<div><h4 id="pythonhasmanydifferentiteratorobjects">Python has many different iterator objects:</h4><ul>
1096-
<li><strong>Iterators returned by the <a href="#iterator">iter()</a> function, such as list_iterator and set_iterator.</strong></li>
1096+
<li><strong>Objects returned by the <a href="#iterator">iter()</a> function, such as list_iterator and set_iterator.</strong></li>
10971097
<li><strong>Objects returned by the <a href="#itertools">itertools</a> module, such as count, repeat and cycle.</strong></li>
10981098
<li><strong>Generators returned by the <a href="#generator">generator functions</a> and <a href="#comprehension">generator expressions</a>.</strong></li>
10991099
<li><strong>File objects returned by the <a href="#open">open()</a> function, etc.</strong></li>
@@ -1318,7 +1318,6 @@
13181318
+-- SystemExit # Raised by the sys.exit() function.
13191319
+-- KeyboardInterrupt # Raised when the user hits the interrupt key (ctrl-c).
13201320
+-- Exception # User-defined exceptions should be derived from this class.
1321-
+-- StopIteration # Raised by next() when run on an empty iterator.
13221321
+-- ArithmeticError # Base class for arithmetic errors.
13231322
| +-- ZeroDivisionError # Raised when dividing by zero.
13241323
+-- AttributeError # Raised when an attribute is missing.
@@ -1331,6 +1330,7 @@
13311330
| +-- FileNotFoundError # When a file or directory is requested but doesn't exist.
13321331
+-- RuntimeError # Raised by errors that don't fall in other categories.
13331332
| +-- RecursionError # Raised when the maximum recursion depth is exceeded.
1333+
+-- StopIteration # Raised by next() when run on an empty iterator.
13341334
+-- TypeError # Raised when an argument is of wrong type.
13351335
+-- ValueError # When an argument is of right type but inappropriate value.
13361336
+-- UnicodeError # Raised when encoding/decoding strings from/to bytes fails.

web/script_2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ const DIAGRAM_8_B =
168168
" ├── SystemExit <span class='hljs-comment'># Raised by the sys.exit() function.</span>\n" +
169169
" ├── KeyboardInterrupt <span class='hljs-comment'># Raised when the user hits the interrupt key (ctrl-c).</span>\n" +
170170
" └── Exception <span class='hljs-comment'># User-defined exceptions should be derived from this class.</span>\n" +
171-
" ├── StopIteration <span class='hljs-comment'># Raised by next() when run on an empty iterator.</span>\n" +
172171
" ├── ArithmeticError <span class='hljs-comment'># Base class for arithmetic errors.</span>\n" +
173172
" │ └── ZeroDivisionError <span class='hljs-comment'># Raised when dividing by zero.</span>\n" +
174173
" ├── AttributeError <span class='hljs-comment'># Raised when an attribute is missing.</span>\n" +
@@ -181,6 +180,7 @@ const DIAGRAM_8_B =
181180
" │ └── FileNotFoundError <span class='hljs-comment'># When a file or directory is requested but doesn't exist.</span>\n" +
182181
" ├── RuntimeError <span class='hljs-comment'># Raised by errors that don't fall in other categories.</span>\n" +
183182
" │ └── RecursionError <span class='hljs-comment'># Raised when the maximum recursion depth is exceeded.</span>\n" +
183+
" ├── StopIteration <span class='hljs-comment'># Raised by next() when run on an empty iterator.</span>\n" +
184184
" ├── TypeError <span class='hljs-comment'># Raised when an argument is of wrong type.</span>\n" +
185185
" └── ValueError <span class='hljs-comment'># When an argument is of right type but inappropriate value.</span>\n" +
186186
" └── UnicodeError <span class='hljs-comment'># Raised when encoding/decoding strings from/to bytes fails.</span>\n";

0 commit comments

Comments
 (0)