yaml :: representer :: BaseRepresenter :: function_type :: Class function_type
[hide private]
[frames] | no frames]

Class function_type

object --+
         |
        yaml.representer.BaseRepresenter.function_type

function(code, globals[, name[, argdefs[, closure]]])

Create a function object from a code object and a dictionary. The optional name string overrides the name from the code object. The optional argdefs tuple specifies the default argument values. The optional closure tuple supplies the bindings for free variables.

Instance Methods [hide private]
 
__call__(x, ...)
x(...)
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
value
__get__(descr, obj, type=...)
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(x)
repr(x)
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Inherited from object: __hash__, __init__, __reduce__, __reduce_ex__, __str__

Properties [hide private]
  __name__
  func_closure
  func_code
  func_defaults
  func_dict
  func_doc
  func_globals
  func_name

Inherited from object: __class__

Method Details [hide private]

__delattr__(...)

 

x.__delattr__('name') <==> del x.name

Overrides: object.__delattr__

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__

__setattr__(...)

 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__