class documentation

class FunctionMaker(object): (source)

View In Hierarchy

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_count Undocumented
@classmethod
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

def make(self, src_templ, evaldict=None, addsource=False, **attrs): (source)

Make a new function from a given template and update the signature

def update(self, func, **kw): (source)

Update the signature of func with the data in self

Undocumented

kwonlyargs: tuple = (source)

Undocumented

kwonlydefaults: tuple = (source)

Undocumented

Undocumented

Undocumented

annotations = (source)

Undocumented

defaults = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

shortsignature = (source)

Undocumented

signature = (source)

Undocumented

_compile_count = (source)

Undocumented