[Python-ideas] keyword arguments everywhere (stdlib) - issue8706
Mike Graham
mikegraham at gmail.com
Sat Mar 3 01:56:35 CET 2012
On Fri, Mar 2, 2012 at 6:56 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> The problem with that is we then have '*' doing double duty as both tuple
> unpacking and keyword-only in the function signature:
>
> def herd(*(size, location), *, breed)
It's not `def herd(*args, *, breed)`, so I don't see why it would be
`def herd(*(size, location), *, breed)`.
I think Nick's syntax is the right one, although adding the feature to
Python is probably not a good idea.
Mike
More information about the Python-ideas
mailing list