Content-Length: 279187 | pFad | https://github.com/python/cpython/issues/94996

B9 ast.parse allows positional-only params with old feature_version · Issue #94996 · python/cpython · GitHub
Skip to content

ast.parse allows positional-only params with old feature_version #94996

@hauntsaninja

Description

@hauntsaninja

The following should raise SyntaxError:

ast.parse('def foo(x, /): ...', feature_version=(3, 7))

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/94996

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy