We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a23ff66 commit 45de31dCopy full SHA for 45de31d
Doc/library/tokenize.rst
@@ -22,6 +22,15 @@ the generic :data:`~token.OP` token type. The exact
22
type can be determined by checking the ``exact_type`` property on the
23
:term:`named tuple` returned from :func:`tokenize.tokenize`.
24
25
+
26
+.. warning::
27
28
+ Note that the functions in this module are only designed to parse
29
+ syntactically valid Python code (code that does not raise when parsed
30
+ using :func:`ast.parse`). The behavior of the functions in this module is
31
+ **undefined** when providing invalid Python code and it can change at any
32
+ point.
33
34
Tokenizing Input
35
----------------
36
0 commit comments