8000 ast.parse allows assignment expressions with old feature_version · Issue #94947 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
ast.parse allows assignment expressions with old feature_version #94947
Closed
@hauntsaninja

Description

@hauntsaninja

The following should raise SyntaxError:

ast.parse('''(b := 2)''', feature_version=(3, 6))

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0