[Edu-sig] Properties use case

Michael Tobis mtobis at gmail.com
Sun Mar 19 01:10:10 CET 2006

Well, if you are sacrificing performance, what is wrong with wrapping
the complex number in a pure python class with all the magic methods

I share your objectives and agree that Python provides a platform for
addressing them. See my article at


You do not explain why a properly duck-typed pure Python wrapper of a
complex number fails to achieve those objectives in your case. Calling
it an "API" issue appears to me to miss my point.

You can present the identical API with a wrapper as with a native
extension, and stay out of the mathematician's way altogether, no? If
not, why not?

Note that when you stray from pure python you shrink your user base
and complicate your support issues substantially.

I would be happy to discuss the topic, but this requires that I
approach the design with due skepticism. If you don't care to explain
your needs you can't expect many useful answers, though I think it's
reasonable to expect fewer and shorter non-useful ones!


More information about the Edu-sig mailing list