Nick Coghlan wrote:
a) Checking that replacing the relevant "raise TypeError" calls in Lib/Decimal.py with "return NotImplemented" gives you friendlier behaviour.

It turns out this isn't really practical - there's too much code in the module relying on those TypeErrors being raised.


So this may change for Python 2.5 (I think it's a genuine bug), but you're probably stuck with it for 2.4 (since changing it is a big enough semantic change to break code in the same module, so who knows what it would do to user code).

Bugger :(

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://boredomandlaziness.skystorm.net
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to