[Python-Dev] PEP 3102: Keyword-only arguments
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu May 4 06:20:56 CEST 2006
BJörn Lindqvist wrote:
> would have thought that the one obvious way to get rid of
> the wanky feeling would have been to write:
>
> def make_person(name, age, phone, location): ...
>
> make_person(name, age, phone, location)
This doesn't fly in something like PyGUI, where there
are literally dozens of potential arguments to many
of the constructors. The only sane way to deal with
that is for them to be keyword-only, at least
conceptually if not in actual implementation.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiam! |
Christchurch, New Zealand | (I'm not a morning person.) |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list