Storing records from a parsed file

Ben Benjamin.Barker at gmail.com
Sat Sep 30 10:38:51 EDT 2006


Ah - I think I've sorted it out.

I can now have data1.function()

or

data2.function()


etc


However, I can still call function() directly:

function()

 which seems very odd Indeed. The only instances of function are within
classes data1 and data2, and these definitions are different, so I
don't see why I can get away with calling it without reference to a
base class - for a start how does it know whivh one to call... will
investigate :-p




More information about the Python-list mailing list