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/120091.html below:

[Python-Dev] Updated PEP 362 (Function Signature Object)

[Python-Dev] Updated PEP 362 (Function Signature Object) [Python-Dev] Updated PEP 362 (Function Signature Object)Benjamin Peterson benjamin at python.org
Sun Jun 10 19:59:35 CEST 2012
2012/6/5 Brett Cannon <brett at python.org>:
> * is_keyword_only : bool
>     True if the parameter is keyword-only, else False.
> * is_args : bool
>     True if the parameter accepts variable number of arguments
>     (``\*args``-like), else False.

How about "vararg" as its named in AST.

> * is_kwargs : bool
>     True if the parameter accepts variable number of keyword
>     arguments (``\*\*kwargs``-like), else False.

Can the "is_" be dropped? It's quite ugly. Even better, since these
are all mutually exclusive, they could be cascaded into a single
"type" attribute.

> * is_implemented : bool
>     True if the parameter is implemented for use.  Some platforms
>     implement functions but can't support specific parameters
>     (e.g. "mode" for os.mkdir).  Passing in an unimplemented
>     parameter may result in the parameter being ignored,
>     or in NotImplementedError being raised.  It is intended that
>     all conditions where ``is_implemented`` may be False be
>     thoroughly documented.




-- 
Regards,
Benjamin
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