Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Document missing AST node constructor behavior changes in ast.rst for python 3.13 #140196

Closed
Labels
@revdoor

Description

@revdoor

Documentation

In Python 3.13, AST node constructors now provide defaults for the omitted fields:

  • Optional fields: default toNone
  • List fields: default to an empty list
  • expr_context fields: default toLoad()

Previously in Python 3.12 and earlier, these omitted fields would not exist as attributes, causingAttributeError when accessed.

These information can be found inWhat’s New In Python 3.13, but not in theast documentation itself.

Since this is a significant behavioral change, it should be documented in theast module documentation with a.. versionchanged:: 3.13 directive.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp