from UserDict import UserDict class fileInfo(UserDict): def __init__(self, filename=None): UserDict.__init__(self) #no idea what it does.is it extending the constructor with UserDict’s constructor? self["name"]=filename