Abstract classes?
Skip Montanaro
skip at mojam.com
Thu Feb 17 09:15:18 EST 2000
Daniel> class Observer:
Daniel> def update( self ):
Daniel> raise "sub-classes must over-ride this method"
You might want to raise the standard NotImplementedError. From its doc
string:
>>> help(NotImplementedError)
Method or function hasn't been implemented yet.
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
"Languages that change by catering to the tastes of non-users tend not to do
so well." - Doug Landauer
More information about the Python-list
mailing list