Comment on PEP-0238

Terry Reedy tjreedy at home.com
Sun Jul 1 13:28:24 EDT 2001


> > From recent discussion it is not clear to me if
> > PeP 0238 (http://python.sourceforge.net/peps/pep-0238.html)
> > has gained favor, or not.

I'm not sure I saw it before, but I'm opposed.  In second grade, I  learned
that count division gives a quotient and remainder.  Integer (signed or
paired count) division only has the additional complication of deciding
whether negative quotients should be the floor or ceiling, which is to say,
whether remainders can be negative or not.  In Python today, / gives the
quotient, % the remainder, and divmod the pair.  Quite simple and quite
easy to understand if one only remembers one's first division lessons
(assuming that one got them).

Terry J. Reedy






More information about the Python-list mailing list