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

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sat Jan 6 13:16:46 CET 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