summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2023-06-13 10:39:29 (GMT)
committerGitHub <noreply@github.com>2023-06-13 10:39:29 (GMT)
commited8217b493e19cea0f3f539e55b592c09ceb9323 (patch)
treef6ae5a0c306d227752c47202aa27927f07f9cba6 /Doc
parentc3d2d64b4c53203719466b32df60ea76f7312891 (diff)
downloadcpython-ed8217b493e19cea0f3f539e55b592c09ceb9323.zip
cpython-ed8217b493e19cea0f3f539e55b592c09ceb9323.tar.gz
cpython-ed8217b493e19cea0f3f539e55b592c09ceb9323.tar.bz2
gh-105713: Document that tokenize raises when mixing tabs/spaces (#105723)
* 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>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.12.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index f1c3f08..bfbc6c7 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -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
=============