There was an error while loading. Please reload this page.
1 parent e970dc7 commit 2aa8519Copy full SHA for 2aa8519
1 file changed
Doc/library/tokenize.rst
@@ -29,7 +29,8 @@ The primary entry point is a :term:`generator`:
29
which must be a callable object which provides the same interface as the
30
:meth:`readline` method of built-in file objects (see section
31
:ref:`bltin-file-objects`). Each call to the function should return one line
32
- of input as a string.
+ of input as a string. Alternately, *readline* may be a callable object that
33
+ signals completion by raising :exc:`StopIteration`.
34
35
The generator produces 5-tuples with these members: the token type; the token
36
string; a 2-tuple ``(srow, scol)`` of ints specifying the row and column
0 commit comments