Skip to content

Commit e1461a7

Browse files
Merge branch 'main' of github.com:python/cpython into fix-gh-138577
* 'main' of github.com:python/cpython: Remove inactive CODEOWNERS (#145930) gh-140196: Added constructor behavior changes in ast.rst for python 3.13 (GH-140243)
2 parents 78b2c6a + 95340ef commit e1461a7

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/CODEOWNERS

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -427,19 +427,19 @@ Lib/dataclasses.py @ericvsmith
427427
Lib/test/test_dataclasses/ @ericvsmith
428428

429429
# Dates and times
430-
Doc/**/*time.rst @pganssle @abalkin @StanFromIreland
430+
Doc/**/*time.rst @pganssle @StanFromIreland
431431
Doc/library/datetime-* @pganssle @StanFromIreland
432432
Doc/library/zoneinfo.rst @pganssle @StanFromIreland
433-
Include/datetime.h @pganssle @abalkin @StanFromIreland
434-
Include/internal/pycore_time.h @pganssle @abalkin @StanFromIreland
433+
Include/datetime.h @pganssle @StanFromIreland
434+
Include/internal/pycore_time.h @pganssle @StanFromIreland
435435
Lib/test/test_zoneinfo/ @pganssle @StanFromIreland
436436
Lib/zoneinfo/ @pganssle @StanFromIreland
437-
Lib/*time.py @pganssle @abalkin @StanFromIreland
438-
Lib/test/datetimetester.py @pganssle @abalkin @StanFromIreland
439-
Lib/test/test_*time.py @pganssle @abalkin @StanFromIreland
437+
Lib/*time.py @pganssle @StanFromIreland
438+
Lib/test/datetimetester.py @pganssle @StanFromIreland
439+
Lib/test/test_*time.py @pganssle @StanFromIreland
440440
Modules/*zoneinfo* @pganssle @StanFromIreland
441-
Modules/*time* @pganssle @abalkin @StanFromIreland
442-
Python/pytime.c @pganssle @abalkin @StanFromIreland
441+
Modules/*time* @pganssle @StanFromIreland
442+
Python/pytime.c @pganssle @StanFromIreland
443443

444444
# Dbm
445445
Doc/library/dbm.rst @corona10 @erlend-aasland @serhiy-storchaka

Doc/library/ast.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ Node classes
131131
Simple indices are represented by their value, extended slices are
132132
represented as tuples.
133133

134+
.. versionchanged:: 3.13
135+
136+
AST node constructors were changed to provide sensible defaults for omitted
137+
fields: optional fields now default to ``None``, list fields default to an
138+
empty list, and fields of type :class:`!ast.expr_context` default to
139+
:class:`Load() <ast.Load>`. Previously, omitted attributes would not exist on constructed
140+
nodes (accessing them raised :exc:`AttributeError`).
141+
134142
.. versionchanged:: 3.14
135143

136144
The :meth:`~object.__repr__` output of :class:`~ast.AST` nodes includes

0 commit comments

Comments
 (0)