Skip to content

Add deprecation warnings for deprecated items in ast.py #140344

@jepler

Description

@jepler

Feature or enhancement

Proposal:

Actually remove the following classes, which were marked as deprecated in Python 3.9:

class Suite(mod):
    """Deprecated AST node class.  Unused in Python 3."""

class AugLoad(expr_context):
    """Deprecated AST node class.  Unused in Python 3."""

class AugStore(expr_context):
    """Deprecated AST node class.  Unused in Python 3."""

These were previously removed but then restored in GH-19056 (Python 3.9)

If it's not feasible to remove them in 3.15 (for instance, as there was never been a runtime deprecation warning added) then add the runtime deprecation instead.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions