-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[API] Rename py::kwonly to py::kw_only #2410
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
Comments
I assume More important to me: I did notice the signature doesn't contain a |
The signature should, yes. I'd like to have a pos_only and |
It could have been done that way; if there's a good reason, we can keep it that way. That's why I've assigned @wjakob , since it's an API choice. |
I very slightly lean towards |
I prefer |
Weak preference for |
Seems like |
The
py::kwonly()
feature is great, but the naming is not very consistent, I believe. It has not been in a released version of pybind11 yet, so I think we can safely change it topy::kw_only()
? Would that be a good idea? (see, for example,py::is_final()
, which was also recently added, orpy::module_local()
,py::buffer_protocol()
, etc.).The text was updated successfully, but these errors were encountered: