Module string :: Class Template
[hide private]
[frames] | no frames]

_TemplateMetaclass Template

object --+
         |
        Template

A string class for supporting $-substitutions.

Instance Methods [hide private]
 
__init__(self, template)
 
_invalid(self, mo)
 
substitute(self, *args, **kws)
 
safe_substitute(self, *args, **kws)
Class Variables [hide private]
  delimiter = '$'
  idpattern = '[_a-z][_a-z0-9]*'
  pattern = re.compile(r'(?ix)\$(?:(?P<escaped>\$)|(?P<named>[_a...
Method Details [hide private]

__init__(self, template)
(Constructor)

 
Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

pattern

Value:
re.compile(r'(?ix)\$(?:(?P<escaped>\$)|(?P<named>[_a-z][_a-z0-9]*)|\{(\
?P<braced>[_a-z][_a-z0-9]*)\}|(?P<invalid>))')