"implemented by subclass"

Emile van Sebille emile at fenx.com
Sat Feb 16 17:52:36 EST 2002


"phil hunt" 
> Is this the most pythonic way to do it? If not, what would be
> better? How about rasing a ShouldBeImplementedBySublass exception?
> 
> How do other people do it?
> 

I've used:

raise RuntimeError, "Method not implemented"

-- 

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list