Package pyrobase :: Module templating :: Class InterpolationTemplate
[hide private]
[frames] | no frames]

Class InterpolationTemplate

source code


Simple string interpolation.

Instance Methods [hide private]
 
__init__(self, fmt, mapping=None)
Create template ADT wrapper object.
source code
 
__repr__(self)
Returns interpolation string.
source code
 
__str__(self)
Returns interpolation string.
source code
 
substitute(self, **variables)
Return expanded template for given variable set.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fmt, mapping=None)
(Constructor)

source code 

Create template ADT wrapper object.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Returns interpolation string.

Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 

Returns interpolation string.

Overrides: object.__str__