Re: [C++-sig] std::complex vs python complex

2012-04-10 Thread Jim Bosch
On 04/10/2012 06:58 AM, Holger Brandsmeier wrote: Dear list, I exported a wrapper for std::complex to python and I am willing to always use this class in python and I never want to use pythons own `complex` data type. However, a funny thing happens when I export the addition operator (the impl

[C++-sig] std::complex vs python complex

2012-04-10 Thread Holger Brandsmeier
Dear list, I exported a wrapper for std::complex to python and I am willing to always use this class in python and I never want to use pythons own `complex` data type. However, a funny thing happens when I export the addition operator (the implemenation is given in the STL ...) .def(self