Ternary plus
Robert Kern
robert.kern at gmail.com
Mon Feb 8 16:28:54 EST 2010
On 2010-02-08 14:59 PM, Martin Drautzburg wrote:
> Just for the hell of it ...
>
> I can easily define __plus__() with three parameters. If the last one is
> optional the + operation works as expected. Is there a way to pass the
> third argument to "+"
No.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list