-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-30206: restore *data* parameter of binascii.b2a_base64 to positional-only #1352
Conversation
@zhangyangyu, thanks for your PR! By analyzing the history of the files in this pull request, we identified @serhiy-storchaka, @jackjansen and @benjaminp to be potential reviewers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to write an unit test to prevent regression in the future?
Should we change the doc to specify that data is a positional only argument?
Of course I could add a test. I don't think we need a doc. It's never mentioned in the current doc and actually I think nobody notice the unintentional change. |
I'm not sure about tests. Other implementation can support passing |
Honestly speaking I support adding a test in this case. There are already some tests for positional-only arguments in other tests. I am not sure we should take care of other implementation here or this needs a cpython-only test. |
What are other tests for positional-only arguments? |
Like test_builtin.TestSorted.test_bad_arguments. |
test_builtin.TestSorted.test_bad_arguments tests a concrete bug caused a crash when pass the first argument by keyword. This is an exceptional case. |
The change looks like it does what is intended, although I don’t think it is worthwhile. The damage (if any) as already been done. |
Okay. Remove the test. Thanks all :-) |
No description provided.