[Python-Dev] PEP 3102: Keyword-only arguments
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri May 5 04:03:44 CEST 2006
Terry Reedy wrote:
> The dispute is about the sensibility and
> politeness of requiring a small fixed number of required, no-default args
> to be passed by name only
There seems to be some confusion between two different
subthreads here. BJörn Lindqvist seemed to be saying that
instead of my suggested
make_person(=name, =age, =phone, =location)
as a substitute for
make_person(name=name, age=age, phone=phone, location=location)
it would be better to pass the arguments positionally. I
was pointing out that you can't do this when the thing you're
calling requires them to be passed by keyword.
--
Greg
More information about the Python-Dev
mailing list