OOP & Abstract Classes

Terry Reedy tjreedy at udel.edu
Mon May 11 20:04:37 EDT 2009


Adam Gaskins wrote:
> Wow, thanks Nick! This is just what I was looking for!

I agree that Nick's semi-abstract class is what you need.
After doing some subclasses, you may discover that there is more common 
code that you can factor out and push to the base class.  You may also 
find it convenient to derive a mock subclass that returns simulated data 
so you can test user code initially without involving (or waiting on) 
real devices.




More information about the Python-list mailing list