]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-105713: Document that tokenize raises when mixing tabs/spaces (#105723)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Tue, 13 Jun 2023 10:39:29 +0000 (12:39 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2023 10:39:29 +0000 (12:39 +0200)
* gh-105713: Document that tokenize raises when mixing tabs/spaces
* Update Doc/whatsnew/3.12.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/whatsnew/3.12.rst

index f1c3f086463d754e2eeac89876ade03574821b24..bfbc6c7a35c6ffea3dc9ec184275ed4be6973080 100644 (file)
@@ -1499,6 +1499,9 @@ Changes in the Python API
   * Some incomplete or invalid Python code now raises :exc:`tokenize.TokenError` instead of
     returning arbitrary ``ERRORTOKEN`` tokens when tokenizing it.
 
+  * Mixing tabs and spaces as indentation in the same file is not supported anymore and will
+    raise a :exc:`TabError`.
+
 Build Changes
 =============