[Python-Dev] PEP 362 Third Revision (original) (raw)
Ethan Furman ethan at stoneleaf.us
Thu Jun 14 23:07:07 CEST 2012
- Previous message: [Python-Dev] PEP 362 Third Revision
- Next message: [Python-Dev] PEP 362 Third Revision
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yury Selivanov wrote:
I'll amend the PEP this evening to replace 'isargs', 'iskwargs', and 'iskeywordonly' with a 'kind' attribute, with possible values: 'positional', 'vararg', 'varkw', 'kwonly'.
Parameter class will have four constants, respectively: class Parameter: KINDPOSITIONAL = 'positional' KINDVARARG = 'vararg' KINDVARKW = 'varkw' KINDKWONLY = 'kwonly' 'Parameter.isimplemented' will be renamed to 'Parameter.implemented' Is everybody OK with this? Thoughts? I, for instance, like 'varkwarg' more than 'varkw' (+ it is more consistent with **kwargs)
+1
I like these names, and the similarity between 'vararg' and 'varkw'. I would also be happy with 'args' and 'kwargs'.
Ethan
- Previous message: [Python-Dev] PEP 362 Third Revision
- Next message: [Python-Dev] PEP 362 Third Revision
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]