[Python-Dev] PEP 3102: Keyword-only arguments
Guido van Rossum
guido at python.org
Tue May 2 16:44:00 CEST 2006
On 5/2/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Terry Reedy wrote:
>
> > my way to call your example (given the data in separate variables):
> > make_person(name, age, phone, location)
> > your way:
> > make_person(name=name, age=age, phone=phone, location = location)
>
> For situations like that, I've sometimes thought
> it would be useful to be able to say something like
>
> make_person(=name, =age, =phone, =location)
And even with Terry's use case quoted I can't make out what you meant
that to do.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list