Re: NotImplimentedError

2008-01-14 Thread Ben Finney
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

Re: NotImplimentedError

2008-01-14 Thread George Sakkis
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

Re: NotImplimentedError

2008-01-14 Thread Ben Finney
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__)

Re: NotImplimentedError

2008-01-14 Thread Ben Finney
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

Re: NotImplimentedError

2008-01-14 Thread Neil Cerutti
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

Re: NotImplimentedError

2008-01-14 Thread George Sakkis
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

Re: NotImplimentedError

2008-01-14 Thread Duncan Booth
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

Re: NotImplimentedError

2008-01-14 Thread Gary Herron
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

NotImplimentedError

2008-01-14 Thread hakim ouaras
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.