negative integer division

Jive Dadson jdadson at yahoo.com
Tue Feb 8 20:57:04 EST 2005


Python does it right.  C is allowed to do it anyway it likes, which was
a stupifyingly horrible decision, IMHO.

Way back when, there was a language named Pascal.  I lobbied the Pascal
standards committee to define the modulus operator correctly, which they
eventually did.  To my astonishment, they proceded to define the
division operator backwards to the modulus operator, so that division
and mod did not play together correctly.  Duh.



More information about the Python-list mailing list