Why Python 3?

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Apr 21 17:58:12 EDT 2014


Chris Angelico wrote:
> Earlier it was said that having both / and // lets you explicitly
> choose whether you want a float result or an int by picking an
> operator. I'm saying that's not so; the operator and the type aren't
> quite orthogonal, but close to.

I don't think I said that, or if I did I was using sloppy
language.

As someone pointed out a couple of posts ago, it's not
really about types, it's about selecting which *operation*
you want to perform. Ordinary division and floor division
are very different operations, and you want to be sure
you get the right one.

-- 
Greg



More information about the Python-list mailing list