[Python.NET] Question about operators

Justin Frost justin.frost at gmail.com
Thu May 3 00:20:28 CEST 2007

Hi Folks,
Is there a way to write a C# class that has operators that work in Python?
Currently, if I have a class with a method like the following:

public static BDDNode operator +(BDDNode A, BDDNode B)
            return A.BDDOr(B);

and try to add two BDDNode Objects in Python ith the "+" operator, I get the

TypeError: unsupported operand type(s) for +: 'BDDNode' and 'BDDNode'

Any way around this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythondotnet/attachments/20070502/e985b2ac/attachment.html 

More information about the PythonDotNet mailing list