Repository navigation
Add Petr's project to the list of projects #57
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
Mariatta
merged 5 commits into
feature/project-list-structure
from
feature/syntax-docs-project
Nov 13, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3036c65
Add Petr's project to the list of projects
Mariatta 8c8be43
Mark the syntax documentation project as active
Mariatta 52ea04e
Merge branch 'feature/project-list-structure' into feature/syntax-doc…
Mariatta c0b60cf
Apply suggestion from @encukou
Mariatta efc076e
Apply suggestion from @encukou
Mariatta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| title: "Improve syntax documentation" | ||
| date: "2026-11-10" | ||
| status: "active" | ||
| sponsor: "" | ||
| lead: "Petr Viktorin" | ||
| summary: "Reword the syntax chapters of the Python Language Reference to match current Python: an overview and common uses first, then increasingly complex details, ending with the formal grammar." | ||
| project_issue: "https://github.com/python/editorial-board/issues/48" | ||
| weight: 10 | ||
| links: | ||
| - url: "https://github.com/python/cpython/issues/135676" | ||
| - url: "https://github.com/python/cpython/issues/141984" | ||
| - title: "Python Language Reference" | ||
| url: "https://docs.python.org/3/reference/index.html" | ||
| --- | ||
|
|
||
| ## Description | ||
|
|
||
| 1. Reword each section of the syntax chapters of the | ||
| [Python Language Reference](https://docs.python.org/3/reference/index.html): | ||
| - [x] Lexical analysis | ||
| - [ ] Expressions | ||
| - [ ] Simple statements | ||
| - [ ] Compound statements | ||
| - [ ] Top-level components | ||
| 2. Synchronize the documented formal grammar with Python's actual grammar. | ||
| (Both will need changing.) | ||
| 3. Automatically generate as much of the formal grammar snippets as possible. | ||
| 4. Add railroad diagrams to the docs. | ||
| 5. Move the non-syntax chapters (Data model, Execution model, The import | ||
| system) out of the Language Reference, and possibly rename it to | ||
| *Python Syntax Reference*. | ||
|
|
||
| ## Benefits | ||
|
|
||
| Better syntax docs that match current Python. | ||
|
|
||
| ## Decisions | ||
|
|
||
| - Is this a good direction? | ||
| - Is the style good? See the mostly finished | ||
| [Lexical analysis](https://docs.python.org/3/reference/lexical_analysis.html) | ||
| chapter and the [current work](https://github.com/python/cpython/issues/141984) | ||
| on Expressions. | ||
|
|
||
| ## Challenges and risks | ||
|
|
||
| - There is an abrupt change in style between the rewritten chapters and the | ||
| rest that is still untouched. | ||
| - The work is moving slowly, and depends on one person. | ||
|
|
||
| ## How to help | ||
|
|
||
| To help, you can review open pull requests (linked to | ||
| [issue #141984](https://github.com/python/cpython/issues/141984)), | ||
| and/or join weekly livestreams at the | ||
| [Python Docs Discord](https://discord.gg/ED65xD8WRg). | ||
|
|
||
| The lead is not looking for people to take this on, since reviewing would be | ||
| as hard as writing. Feedback on the direction and style is welcome. The work | ||
|
Mariatta marked this conversation as resolved.
Resolved
|
||
| happens on weekly livestreams. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.