Skip to content

Implement PEP-570: positional-only arguments #2915

@scoder

Description

@scoder

https://www.python.org/dev/peps/pep-0570/

  • allow / in signatures in Parsing.py
  • mark the preceding arguments as positional-only via a new attribute
  • exclude them from keyword parsing in Nodes.py (DefNode and DefNodeWrapper).
  • add tests (mostly copied from CPython)

We should also support positional-only arguments for cdef functions (for which we also allow keyword arguments).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions