On 5/27/05, David M. Cooke <[EMAIL PROTECTED]> wrote:
> On Fri, May 27, 2005 at 01:06:36AM -0400, Michele Simionato wrote:
> > 3. Exception("unimplemented") can be replaced with the built-in
> > NotImplemented ;)
>
> While we're nitpicking :-) NotImplemented is the singleton returned (not
> raised) by numeric methods (like __add__) and rich comparision methods
> (__eq__ and friends) to indicate they don't handle the combination of
> objects passed to them (see section 3.2 of the Language Reference). What
> you want here is NotImplementedError (which is a subclass of Exception).
(my bad, got into a TypingError ;)
Michele
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users