[Python-Dev] return type of complex (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Sun Oct 21 10:47:26 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 ]
On 21.10.12 09:05, Greg Ewing wrote:
The equivalent solution here would be to add a new operator for complex exponentiation that coerces its operands to complex, and restrict the existing one to floats only.
In case of division a new operator (//) restricted to ints only, and the existing one coerces its operands to floats.
- Previous message: [Python-Dev] return type of __complex__
- Next message: [Python-Dev] return type of __complex__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]