Skip to content

Commit

Permalink
[3.12] Clarify the supported cases in the tokenize module (GH-105569) (
Browse files Browse the repository at this point in the history
…#105573)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
  • Loading branch information
miss-islington and pablogsal committed Jun 9, 2023
1 parent 7c298d2 commit 97d846d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Doc/library/tokenize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ the generic :data:`~token.OP` token type. The exact
type can be determined by checking the ``exact_type`` property on the
:term:`named tuple` returned from :func:`tokenize.tokenize`.


.. warning::

Note that the functions in this module are only designed to parse
syntactically valid Python code (code that does not raise when parsed
using :func:`ast.parse`). The behavior of the functions in this module is
**undefined** when providing invalid Python code and it can change at any
point.

Tokenizing Input
----------------

Expand Down

0 comments on commit 97d846d

Please sign in to comment.