NotImplimentedError

Neil Cerutti mr.cerutti at gmail.com
Mon Jan 14 09:32:16 EST 2008


On Jan 14, 2008 9:01 AM, George Sakkis <george.sakkis at gmail.com> wrote:
> By the way, why do we need both NotImplementedError and the
> NotImplemented singleton object ? Couldn't we have just one of them ?

I think we need  both because an unimplemented method is an error,
while an unimplemented rich comparison between disparate types is
(usually) not. It could be made to work with one object fulfilling
both functions, but then the name would be wrong for one case or the
other.

-- 
Neil Cerutti <mr.cerutti+python at gmail.com>



More information about the Python-list mailing list