Logo Search packages:      
Sourcecode: mascyma version File versions  Download package

matplotlib::cbook::Xlator Class Reference

List of all members.


Detailed Description

All-in-one multiple-string-substitution class

Example usage:

text = "Larry Wall is the creator of Perl"
adict = {
"Larry Wall" : "Guido van Rossum",
"creator" : "Benevolent Dictator for Life",
"Perl" : "Python",
}

print multiple_replace(adict, text)

xlat = Xlator(adict)
print xlat.xlat(text)

Definition at line 121 of file cbook.py.


Public Member Functions

def __call__
def xlat

Private Member Functions

def _make_regex

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

Generated by  Doxygen 1.6.0   Back to index