-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
In function call, keyword arguments could follow *args #47723
Comments
functions with keyword-only arguments have this form: It would be more consistent to allow this function call: See the use case in |
Should this apply to 2.6 as well? See r65321, I find the last line def grouper(n, iterable, fillvalue=None):
args = [iter(iterable)] * n
return izip_longest(*args, fillvalue=fillvalue) On the cons side, keyword-only arguments don't exist in 2.6, so the |
+1 for applying to 2.6. izip_longest() is a perfect example of where it's important. |
Patches for both versions are attached. |
The patches look good to me. |
I'll have a look at this in the next day or two. |
I will not have internet access for the next week. |
Another use case: upon reading A.Baxter's Porting to 3 talk, I realized, Given that many have problems with .join and that most uses are to |
Ping! |
Barry, is it still time for this to be included in 2.6b3? |
Guido's approved it, so please go ahead and add it before beta 3. |
Applied for 2.6 in r65872. |
Done for py3k in r65877. |
Now test_compiler is breaking for us because the compiler package can't |
The compiler package was fixed some time ago with r65891 |
The documentation change in this patch introduced a bug in the Call grammar: | "" instead of | "*" giving the impression that |
New changeset 3ae399c6ecf6 by Benjamin Peterson in branch '2.7': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: