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.
-- http://mail.python.org/mailman/listinfo/python-list