"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>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. You are mixing lemons and peaches. There is no disagreement about name-only options with default values or default behavior in the absence of a value (your peach case). 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 (the lemon case) and prohibiting a call passing by position, as above. Terry Jan Reedy
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com