-
Notifications
You must be signed in to change notification settings - Fork 29
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
Change some long method signatures to require keyword arguments? #1223
Comments
absolutely yes please |
Ok, we'll do this in version 3.0. We don't currently know how to do a deprecation process for this, so doing it in a major version change is most appropriate. |
Looking at this a bit and I have some questions. How aggressive do we want to be on this? Is this mostly for developers so we don't have to worry about changing parameter order, or is this mostly to protect users from accidentally passing parameters in the wrong order? An example that I'm thinking about is the utility function |
IMHO that particular example should not be changed since the order of arguments is in the function name itself. |
Thanks. What about |
I think so, yes. Because those are non-obvious. |
fixed in #1333 |
python supports the
*
delineation in a method signature to require everything after to be keyword only (and/
to signify everything before be positional only). Should we change some of our longer methods (e.g.read
) to have the keyword only arguments?https://peps.python.org/pep-3102/
The text was updated successfully, but these errors were encountered: