Abstract classes?
Gerrit Holl
gerrit.holl at pobox.com
Thu Feb 17 01:45:07 EST 2000
Daniel T. wrote on 950756727:
> Also, any general critiques of this code?
>
> class Observer:
> def update( self ):
> raise "sub-classes must over-ride this method"
raise NotImplementedError("sub-classes must override this method")
>>> print NotImplementedError.__doc__
Method or function hasn't been implemented yet.
The NotImplementedError was designed *exactly* for this case.
regards,
Gerrit.
--
cat: /home/gerrit/.signature: No such file or directory
More information about the Python-list
mailing list