[Python-Dev] return type of complex (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun Oct 21 07:26:57 CEST 2012
- Previous message: [Python-Dev] return type of __complex__
- Next message: [Python-Dev] return type of __complex__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think I've changed my mind on this, since it was pointed out that if you're going to return a float instead of a complex, you should really be implementing float, not complex.
So I think it's fine to require complex to return a complex, and the docs should perhaps be clarified on that point.
Also PyComplex_AsComplex() should perhaps enforce that.
-- Greg
- Previous message: [Python-Dev] return type of __complex__
- Next message: [Python-Dev] return type of __complex__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]