Best way to do data source abstraction

Arthur Pemberton pemboa at gmail.com
Thu Jun 1 03:36:06 EDT 2006


What is the best way to do data source abtraction? For example have
different classes with the same interface, but different
implementations.

I was thinking of almost having classA as my main class, and have
classA dynamically "absorb" classFood into to based on the extension
of the input file received by classA. But this doesn't seem possible.

Please advise.

Thank you.

-- 
To be updated...



More information about the Python-list mailing list