From justin.frost at gmail.com Thu May 3 00:20:28 2007 From: justin.frost at gmail.com (Justin Frost) Date: Wed, 2 May 2007 15:20:28 -0700 Subject: [Python.NET] Question about operators Message-ID: 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 following: TypeError: unsupported operand type(s) for +: 'BDDNode' and 'BDDNode' Any way around this? Thanks, -Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythondotnet/attachments/20070502/e985b2ac/attachment.html