Logo Search packages:      
Sourcecode: vegastrike-data version File versions  Download package

UserString::MutableString Class Reference

Inheritance diagram for UserString::MutableString:

List of all members.

Detailed Description

mutable string objects

Python strings are immutable objects.  This has the advantage, that
strings may be used as dictionary keys.  If this property isn't needed
and you insist on changing string values in place instead, you may cheat
and use MutableString.

But the purpose of this class is an educational one: to prevent
people from inventing their own mutable string class derived
from UserString and than forget thereby to remove (override) the
__hash__ method inherited from ^UserString.  This would lead to
errors that would be very hard to track down.

A faster and better solution is to rewrite your program using lists.

Definition at line 132 of file UserString.py.

Public Member Functions

def __add__
def __cmp__
def __complex__
def __contains__
def __delitem__
def __delslice__
def __float__
def __getitem__
def __getslice__
def __hash__
def __iadd__
def __imul__
def __init__
def __int__
def __len__
def __long__
def __mul__
def __radd__
def __repr__
def __setitem__
def __setslice__
def __str__
def capitalize
def center
def count
def decode
def encode
def endswith
def expandtabs
def find
def immutable
def index
def isalnum
def isalpha
def isdecimal
def isdigit
def islower
def isnumeric
def isspace
def istitle
def isupper
def join
def ljust
def lower
def lstrip
def replace
def rfind
def rindex
def rjust
def rstrip
def split
def splitlines
def startswith
def strip
def swapcase
def title
def translate
def upper

Public Attributes


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

Generated by  Doxygen 1.6.0   Back to index