Arthur Pemberton wrote:
> 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
Arthur Pemberton wrote:
> 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
Arthur Pemberton enlightened us with:
> What is the best way to do data source abtraction?
That depends on your data source. For files, file-like objects are an
abstraction. For databases there is PEP 249.
> I was thinking of almost having classA as my main class, and have
> classA dynamically "a