George Sakkis <[EMAIL PROTECTED]> writes:
> On Jan 14, 5:39 pm, Ben Finney <[EMAIL PROTECTED]>
> wrote:
>
> > I think of NotImplemented as equivalent to None; it's useful as a
> > sentinel value to set an attribute to in (e.g.) an abstract class.
>
> My guess would be that it is more of an imple
On Jan 14, 5:39 pm, Ben Finney <[EMAIL PROTECTED]>
wrote:
> I think of NotImplemented as equivalent to None; it's useful as a
> sentinel value to set an attribute to in (e.g.) an abstract class.
My guess would be that it is more of an implementation performance
decision than semantic. Checking 'i
Ben Finney <[EMAIL PROTECTED]> writes:
> I think of NotImplemented as equivalent to None
Not "equivalent"; rather "comparable in usage".
--
\ "[W]e are still the first generation of users, and for all that |
`\ we may have invented the net, we still don't really get it." |
_o__)
George Sakkis <[EMAIL PROTECTED]> writes:
> By the way, why do we need both NotImplementedError and the
> NotImplemented singleton object ? Couldn't we have just one of them ?
One of them is an exception class, the other is not. They have rather
different semantics.
I think of NotImplemented as
On Jan 14, 2008 9:01 AM, George Sakkis <[EMAIL PROTECTED]> 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 com
By the way, why do we need both NotImplementedError and the
NotImplemented singleton object ? Couldn't we have just one of them ?
--
http://mail.python.org/mailman/listinfo/python-list
Gary Herron <[EMAIL PROTECTED]> wrote:
> hakim ouaras wrote:
>> Hi,
>>
>> I am begining with python, I want to know what is the utility and how
>> to use the expression "NotImplementedError".
>>
>> Thak you for your answers
>> Hakim
>>
>
> It's meant to be used to mark a procedure that you intend
hakim ouaras wrote:
> Hi,
>
> I am begining with python, I want to know what is the utility and how
> to use the expression "NotImplementedError".
>
> Thak you for your answers
> Hakim
>
>
> Never miss a thing. Make Yahoo your
Hi,
I am begining with python, I want to know what is the utility and how to use
the expression "NotImplementedError".
Thak you for your answers
Hakim
Never miss a thing. Make Yahoo your home page.