[Python-Dev] PEP 3102: Keyword-only arguments

"Martin v. Löwis" martin at v.loewis.de
Sun Apr 30 10:35:24 CEST 2006


Terry Reedy wrote:
>>     Now, suppose you wanted to have 'key' be a keyword-only argument.
> 
> Why?  Why not let the user type the additional argument(s) without the 
> parameter name?

Are you asking why that feature (keyword-only arguments) is desirable?
That's the whole point of the PEP. Or are you asking why the user
shouldn't be allowed to pass keyword-only arguments by omitting the
keyword? Because they wouldn't be keyword-only arguments then, anymore.

Regards,
Martin


More information about the Python-Dev mailing list