8000 [3.12] gh-105713: Document that tokenize raises when mixing tabs/spaces (GH-105723) by miss-islington · Pull Request #105725 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-105713: Document that tokenize raises when mixing tabs/spaces (GH-105723) #105725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-105713: Document that tokenize raises when mixing tabs/spaces (GH-…
…105723)

* gh-105713: Document that tokenize raises when mixing tabs/spaces
* Update Doc/whatsnew/3.12.rst

(cherry picked from commit ed8217b)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
2 people authored and miss-islington committed Jun 13, 2023
commit 0cd0a54ace053d5fc94a69cb8b6b6070cc6fae46
3 changes: 3 additions & 0 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,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
=============

Expand Down
0