A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-June/120262.html below:

[Python-Dev] PEP 362 Third Revision

[Python-Dev] PEP 362 Third RevisionEthan Furman ethan at stoneleaf.us
Thu Jun 14 23:07:07 CEST 2012
Yury Selivanov wrote:
> I'll amend the PEP this evening to replace 'is_args', 'is_kwargs',
> and 'is_keyword_only' with a 'kind' attribute, with possible
> values: 'positional', 'vararg', 'varkw', 'kwonly'.
> 
> Parameter class will have four constants, respectively:
> 
>      class Parameter:
>          KIND_POSITIONAL = 'positional'
>          KIND_VARARG = 'vararg'
>          KIND_VARKW = 'varkw'
>          KIND_KWONLY = 'kwonly'
> 
> 'Parameter.is_implemented' 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~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4