[Python-Dev] Updated PEP 362 (Function Signature Object) (original) (raw)
Benjamin Peterson benjamin at python.org
Sun Jun 10 19:59:35 CEST 2012
- Previous message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Next message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2012/6/5 Brett Cannon <brett at python.org>:
* iskeywordonly : bool True if the parameter is keyword-only, else False. * isargs : bool True if the parameter accepts variable number of arguments (
\*args
-like), else False.
How about "vararg" as its named in AST.
* iskwargs : 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.
* isimplemented : 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
isimplemented
may be False be thoroughly documented.
-- Regards, Benjamin
- Previous message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Next message: [Python-Dev] Updated PEP 362 (Function Signature Object)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]