[Python-Dev] Decimal & returning NotImplemented (or not)

Nick Coghlan ncoghlan at iinet.net.au
Mon Mar 7 10:01:50 CET 2005


Greg Ewing wrote:
> Is there some reason why Context couldn't invoke the binary
> operator methods using binary operators, rather than calling
> their methods directly?

I had a similar idea, but then I remembered that the whole point of invoking the 
methods through a specific Context is to override the default context that the 
binary operators pick up.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net


More information about the Python-Dev mailing list