xoviat wrote:
I agree with Nick that exceptions are the way to do things in Python

I don't agree that exceptions are the way to do "things"
in general. They're the way to so *some* things. The question
is whether the thing we're talking about is one of those
things.

The reasoning behind this is that Python has in general adopted this approach (Nick is right that they would have used NotImplementedError for binary operations except for performance issues)

But only because NotImplemented is an out-of-band condition
for operations in general. We're not talking about a general
operation here, but a very specific one that only has a couple
of possible results.

--
Greg
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to