Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
string._TemplateMetaclass Class Reference
Inheritance diagram for string._TemplateMetaclass:
Inheritance graph
Collaboration diagram for string._TemplateMetaclass:
Collaboration graph

List of all members.

Public Member Functions

def __init__

Static Public Attributes

string pattern = r""

Detailed Description

Definition at line 67 of file

Constructor & Destructor Documentation

def string._TemplateMetaclass.__init__ (   cls,

Definition at line 77 of file

00078     def __init__(cls, name, bases, dct):
00079         super(_TemplateMetaclass, cls).__init__(name, bases, dct)
00080         if 'pattern' in dct:
00081             pattern = cls.pattern
00082         else:
00083             pattern = _TemplateMetaclass.pattern % {
00084                 'delim' : _re.escape(cls.delimiter),
00085                 'id'    : cls.idpattern,
00086                 }
00087         cls.pattern = _re.compile(pattern, cls.flags | _re.VERBOSE)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

string string._TemplateMetaclass.pattern = r"" [static]

Definition at line 68 of file

The documentation for this class was generated from the following file: