Verbose and flexible args and kwargs syntax

Chris Angelico rosuav at gmail.com
Mon Dec 12 11:19:39 EST 2011


On Tue, Dec 13, 2011 at 3:15 AM, Arnaud Delobelle <arnodel at gmail.com> wrote:
>
> You mean (a + b) % c == (a%c + b%c) % c
>
> :)

It's just integer wraparound. Modulo 9 is the same as "render this
number in base 9 and take the last digit" (and printing a number in
base 9 would normally be done with mod 9 division), and most people
can wrap their heads around the way an odometer wraps around.

ChrisA



More information about the Python-list mailing list