Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-140196: Added constructor behavior changes in ast.rst for python 3.13#140243

Merged
ambv merged 4 commits into
python:mainpython/cpython:mainfrom
MannXo:gh-140196-doc-ast-3.13MannXo/cpython:gh-140196-doc-ast-3.13Copy head branch name to clipboard
Mar 24, 2026
Merged

gh-140196: Added constructor behavior changes in ast.rst for python 3.13#140243
ambv merged 4 commits into
python:mainpython/cpython:mainfrom
MannXo:gh-140196-doc-ast-3.13MannXo/cpython:gh-140196-doc-ast-3.13Copy head branch name to clipboard

Conversation

@MannXo

@MannXo MannXo commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

Summary


This adds a .. versionchanged:: 3.13 note to ast.rst documenting that AST node constructors now provide sensible defaults for omitted fields in Python 3.13: optional fields default to None, list fields default to an empty list, and fields of type :class:ast.expr_context default to :class:Load() <ast.Load>

Issue


#140196


📚 Documentation preview 📚: https://cpython-previews--140243.org.readthedocs.build/

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Oct 17, 2025
@python-cla-bot

python-cla-bot Bot commented Oct 17, 2025

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

Comment thread Doc/library/ast.rst Outdated
@ambv ambv merged commit fae5761 into python:main Mar 24, 2026
29 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Mar 24, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @MannXo for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @MannXo and @ambv, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker fae5761a762a587b48430cbcd6e1886034ae8130 3.13

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 24, 2026
…thon 3.13 (pythonGH-140243)

(cherry picked from commit fae5761)

Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@bedevere-app

bedevere-app Bot commented Mar 24, 2026

Copy link
Copy Markdown

GH-146351 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Mar 24, 2026
ambv added a commit that referenced this pull request Mar 24, 2026
…ython 3.13 (GH-140243) (GH-146351)

(cherry picked from commit fae5761)

Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
ambv added a commit to ambv/cpython that referenced this pull request Mar 24, 2026
… for python 3.13 (pythonGH-140243)

(cherry picked from commit fae5761)

Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@bedevere-app

bedevere-app Bot commented Mar 24, 2026

Copy link
Copy Markdown

GH-146354 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Mar 24, 2026
ambv added a commit that referenced this pull request Mar 24, 2026
…hon 3.13 (GH-140243) (GH-146354)

(cherry picked from commit fae5761)

Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull request Mar 24, 2026
…8577

* 'main' of github.com:python/cpython:
  Remove inactive CODEOWNERS (python#145930)
  pythongh-140196: Added constructor behavior changes in ast.rst for python 3.13 (pythonGH-140243)
clin1234 pushed a commit to clin1234/cpython that referenced this pull request Apr 16, 2026
…thon 3.13 (pythonGH-140243)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
…thon 3.13 (pythonGH-140243)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.