What is proper way to require a method to be overridden?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sat Jan 6 07:16:46 EST 2007


Patrick Down a écrit :
> jeremito wrote:
> 
>>I am writing a class that is intended to be subclassed.  What is the
>>proper way to indicate that a sub class must override a method?
>>
(snip)

> Decorators to the rescue?

(snip convoluted code)

What a strange idea...



More information about the Python-list mailing list