subclassing Python types

zzbbaadd at aol.com zzbbaadd at aol.com
Thu Aug 30 15:00:42 EDT 2007


I have read that you can derive from the base classes such as str,
list, dict.

I guess this would look like:

def MyString(str):
def MyList(list):
def MyDict(dict):


How do you access the data that is contained in the super class?




More information about the Python-list mailing list