Skip to content

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

Merged
ambv merged 4 commits intopython:mainfrom
MannXo:gh-140196-doc-ast-3.13
Mar 24, 2026
Merged

gh-140196: Added constructor behavior changes in ast.rst for python 3.13#140243
ambv merged 4 commits intopython:mainfrom
MannXo:gh-140196-doc-ast-3.13

Conversation

@MannXo
Copy link
Contributor

@MannXo MannXo commented Oct 17, 2025

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
Copy link

python-cla-bot bot commented Oct 17, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@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

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

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
Copy link

bedevere-app bot commented Mar 24, 2026

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
Copy link

bedevere-app bot commented Mar 24, 2026

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)
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