GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Promote `ast` node constructor deprecation warnings to errors · Issue #137600 · python/cpython

Promote ast node constructor deprecation warnings to errors #137600

New issue
Copy link
New issue
Copy link
Closed
#137601
Closed
Promote ast node constructor deprecation warnings to errors#137600
#137601
Copy link
Assignees
brianschubert
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-parsertype-featureA feature request or enhancementA feature request or enhancement

Description

@brianschubert
brianschubert
opened on Aug 9, 2025
Issue body actions

Feature or enhancement

Following from #105858

Several ast deprecations were introduced in 3.13, with errors scheduled for 3.15:

>>> _ = ast.Module(foo=1)
<python-input-1>:1: DeprecationWarning: Module.__init__ got an unexpected keyword argument 'foo'. Support for arbitrary keyword arguments is deprecated and will be removed in Python 3.15.
Module(body=[], type_ignores=[])

>>> _ = ast.BinOp()
<python-input-2>:1: DeprecationWarning: BinOp.__init__ missing 1 required positional argument: 'right'. This will become an error in Python 3.15.
<python-input-2>:1: DeprecationWarning: BinOp.__init__ missing 1 required positional argument: 'op'. This will become an error in Python 3.15.
<python-input-2>:1: DeprecationWarning: BinOp.__init__ missing 1 required positional argument: 'left'. This will become an error in Python 3.15.

Now seems like a good time to promote these deprecation warnings to errors.

Linked PRs

  • gh-137600: Promote ast node constructor deprecation warnings to errors #137601
Reacted by Kirill Podoprigora

Activity

  1. brianschubert
    self-assigned this
    on Aug 9, 2025
  2. brianschubert
    added
    type-featureA feature request or enhancementA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    topic-parser
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Aug 9, 2025
  3. brianschubert
    linked a pull request that will close this issuegh-137600: Promote `ast` node constructor deprecation warnings to errors #137601on Aug 9, 2025
  4. brianschubert
    added a commit that references this issue on Oct 13, 2025

    Merge branch 'main' into pythongh-137600-ast-constr-errors

    2d7d5da
  5. brianschubert
    added a commit that references this issue on Nov 22, 2025

    Merge branch 'main' into pythongh-137600-ast-constr-errors

    f3e21e6
  6. JelleZijlstra
    added 2 commits that reference this issue on Apr 28, 2026

    Merge branch 'main' into pythongh-137600-ast-constr-errors

    26f946e

    gh-137600: Promote `ast` node constructor deprecation warnings to err…

    d2f506a
  7. JelleZijlstra
    closed this as completedin #137601on Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @brianschubert
    brianschubert

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-parsertype-featureA feature request or enhancementA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.