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
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
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 the
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 the