python / python/cpython

Inaccuracies in expression_stmt documentation

Open
#148,592 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs topic-parser
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Documentation

I found discrepancies between grammar in docs and Full Grammar specification for expression_stmt, assignment_stmt (and other forms).

Statements like:
1,2
(1,2)
(x:=1)
yield (without argument)
is not covered by formal grammar in docs.

See discussion

Linked PRs
  • gh-148593

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the expression_stmt and assignment_stmt documentation with the linked Full Grammar specification, using the examples in the issue as checks. Read the linked discussion and gh-148593 first; done means the documented grammar covers the listed forms consistently with the specification.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.