idioms for abstract base classes

Iman L Crawford ilcrawford.at.hotmail.dot.com
Wed Apr 25 10:28:55 EDT 2001


zooko at zooko.com wrote in <mailman.988143638.2123.python-list at python.org>:
>You can see here[1, 2, 3] how I did this in Mojo Nation[4].  I made a
>pure-abstract base class (i.e. an "Interface") named "CommsHandler", a
>non-abstract base class named "BaseCommsHandler", and various subclasses
>named "{TCP,Crypto,Dummy}CommsHandler".

A good rule of thumb is to use interfaces when you base class is a pure 
abstract class. 


-- 
Iman
"I was looking handsome,
 she was looking like an erotic vulture" The Pixies



More information about the Python-list mailing list