Language change and code breaks

Fredrik Lundh fredrik at pythonware.com
Wed Jul 11 17:47:11 EDT 2001


David Bolen wrote:
>
> > And a//b definitely beats (a+0.)/b, which does the trick, but is not
> > at all evident.
>
> Well, I'd probably suggest using "float(a)/b" instead which at least
> makes it a little easier to see what's going on :-)

except that it doesn't do the right thing if a is a complex
number.

</F>





More information about the Python-list mailing list