[Twisted-Python] zope.interface
Paul Thomas
spongelavapaul at googlemail.com
Wed Dec 16 03:36:32 EST 2009
On 15 Dec 2009, at 18:11, Jared Gisin wrote:
> What's wrong with writing subclasses? I've never had a case where
> that wasn't sufficient. Instead of filling up your files with all
> of these empty class definitions that define the methods that
> objects should implemmnt, why not just make the base object from
> which all similar object inherit implement the required methods, and
> if it's up to a subclass to provide functionality, just raise an
> ImplementationError in the base class method and let it be a run-
> time error. Keep it clean and simple and let Python do its work.
Wouldn't that be _more_ empty class definitions?
More information about the Twisted-Python
mailing list