Skip to content

gh-148327: Update syntax error example in tutorial#148328

Open
blesson-07 wants to merge 4 commits intopython:mainfrom
blesson-07:main
Open

gh-148327: Update syntax error example in tutorial#148328
blesson-07 wants to merge 4 commits intopython:mainfrom
blesson-07:main

Conversation

@blesson-07
Copy link
Copy Markdown

@blesson-07 blesson-07 commented Apr 10, 2026

gh-148327: Update syntax error example in tutorial

Closes #148327

Replace the outdated syntax error example with a clearer one.
Update the syntax error example from while True print('Hello world') to a[1]] = 0, which gives a clearer unmatched ']' error and better shows arrow placement.

Clarify error message explanation for syntax errors.
Fix formatting issues in error message example
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot bot commented Apr 10, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@StanFromIreland
Copy link
Copy Markdown
Member

CC @erlend-aasland, per #30097 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Docs: problem with page "8. Errors and Exceptions"

2 participants