can I overload operators like "=>", "->" or something like that?
Chris Angelico
rosuav at gmail.com
Fri Apr 20 17:52:44 EDT 2012
On Sat, Apr 21, 2012 at 7:34 AM, Steven W. Orr <steveo at syslang.net> wrote:
> Then define a class called Bool that redefines things like __rlshift__ and
> __rrshift__. That would get >>= and <<= for Implications and nodus tolens.
> It's not a total solution. I can't see how you're going to get IFF, NAND and
> NOR.
IFF is simply the equality operator (cast to boolean first if necessary).
ChrisA
More information about the Python-list
mailing list