What is proper way to require a method to be overridden?
Grant Edwards
grante at visi.com
Fri Jan 5 00:40:44 EST 2007
On 2007-01-05, Thomas Ploch <Thomas.Ploch at gmx.net> wrote:
>>> I learn so much from this list. I didn't even know this error
>>> existed.
>>
>> And remember: even if it didn't, you could have created your
>> own:
>
> Erm, it wasn't me who asked. I just wanted to say that I didn't know
> that there is a NotImplementedError.
Sorry, I sort of lost track. You can still invent your own
Exceptions anyway. ;) Just don't do what I do and take the
lazy way out:
raise "method not implemented"
That's considered bad form these days.
--
Grant Edwards
grante at visi.com
More information about the Python-list
mailing list