Robert Bradshaw, 03.12.2009 18:10: > Nice. With that, I can't see any place that inference of doubles > wouldn't be safe either, and it would be very convenient.
I have an implementation, but I noticed that typing the lhs of assignments isn't enough to support code like this: x = 2.5 + 1.5 ** float(some_obj) # could be string/float/... because the calculation would still run in Python space, although we know it could run completely in C after unpacking the last operand. So I needed to force Python float operands into C doubles inside of NumBinopNode, in addition to the support in the type inference mechanism. Would that still be enabled by the type inference switch? I guess a separate option would be better, right? Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
