Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PEP-570: positional-only arguments #2915

Closed
scoder opened this issue Apr 7, 2019 · 1 comment
Closed

Implement PEP-570: positional-only arguments #2915

scoder opened this issue Apr 7, 2019 · 1 comment

Comments

@scoder
Copy link
Contributor

scoder commented Apr 7, 2019

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).

@scoder
Copy link
Contributor Author

scoder commented Apr 30, 2019

Implemented in #2927.

Support in cdef functions is missing, but is also not very important, since all arguments in functions are passed as positional arguments in the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant