You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div><h4id="pythonhasmanydifferentiteratorobjects">Python has many different iterator objects:</h4><ul>
1096
-
<li><strong>Iterators returned by the <ahref="#iterator">iter()</a> function, such as list_iterator and set_iterator.</strong></li>
1096
+
<li><strong>Objects returned by the <ahref="#iterator">iter()</a> function, such as list_iterator and set_iterator.</strong></li>
1097
1097
<li><strong>Objects returned by the <ahref="#itertools">itertools</a> module, such as count, repeat and cycle.</strong></li>
1098
1098
<li><strong>Generators returned by the <ahref="#generator">generator functions</a> and <ahref="#comprehension">generator expressions</a>.</strong></li>
1099
1099
<li><strong>File objects returned by the <ahref="#open">open()</a> function, etc.</strong></li>
@@ -1318,7 +1318,6 @@
1318
1318
+-- SystemExit # Raised by the sys.exit() function.
1319
1319
+-- KeyboardInterrupt # Raised when the user hits the interrupt key (ctrl-c).
1320
1320
+-- Exception # User-defined exceptions should be derived from this class.
1321
-
+-- StopIteration # Raised by next() when run on an empty iterator.
1322
1321
+-- ArithmeticError # Base class for arithmetic errors.
1323
1322
| +-- ZeroDivisionError # Raised when dividing by zero.
1324
1323
+-- AttributeError # Raised when an attribute is missing.
@@ -1331,6 +1330,7 @@
1331
1330
| +-- FileNotFoundError # When a file or directory is requested but doesn't exist.
1332
1331
+-- RuntimeError # Raised by errors that don't fall in other categories.
1333
1332
| +-- RecursionError # Raised when the maximum recursion depth is exceeded.
1333
+
+-- StopIteration # Raised by next() when run on an empty iterator.
1334
1334
+-- TypeError # Raised when an argument is of wrong type.
1335
1335
+-- ValueError # When an argument is of right type but inappropriate value.
1336
1336
+-- UnicodeError # Raised when encoding/decoding strings from/to bytes fails.
0 commit comments