class str2p(types.StringType):
def __init__(self, val=''):
self.__val = val
def mth(self):
return str2p(self.__val[1:])
a = str2p('we')
a = a.replace('w','m')class str2p(types.StringType):
def __init__(self, val=''):
self.__val = val
def mth(self):
return str2p(self.__val[1:])
a = str2p('we')
a = a.replace('w','m')