class documentation
An object with the ability to create functions with a given signature. It has attributes name, doc, module, signature, defaults, dict and methods update and make.
Class Method | create |
Create a function from the strings name, signature and body. evaldict is the evaluation dictionary. If addsource is true an attribute __source__ is added to the result. The attributes attrs are added, if any. |
Method | __init__ |
Undocumented |
Method | make |
Make a new function from a given template and update the signature |
Method | update |
Update the signature of func with the data in self |
Class Variable | args |
Undocumented |
Class Variable | kwonlyargs |
Undocumented |
Class Variable | kwonlydefaults |
Undocumented |
Class Variable | varargs |
Undocumented |
Class Variable | varkw |
Undocumented |
Instance Variable | annotations |
Undocumented |
Instance Variable | defaults |
Undocumented |
Instance Variable | dict |
Undocumented |
Instance Variable | doc |
Undocumented |
Instance Variable | module |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | shortsignature |
Undocumented |
Instance Variable | signature |
Undocumented |
Class Variable | _compile |
Undocumented |
@classmethod
def create(cls, obj, body, evaldict, defaults=None, doc=None, module=None, addsource=True, **attrs): (source) ¶
def create(cls, obj, body, evaldict, defaults=None, doc=None, module=None, addsource=True, **attrs): (source) ¶
Create a function from the strings name, signature and body. evaldict is the evaluation dictionary. If addsource is true an attribute __source__ is added to the result. The attributes attrs are added, if any.
def __init__(self, func=None, name=None, signature=None, defaults=None, doc=None, module=None, funcdict=None):
(source)
¶
Undocumented