% is not an operator [was Re: Verbose and flexible args and kwargs syntax]

rusi rustompmody at gmail.com
Thu Dec 15 06:04:40 EST 2011


On Dec 15, 3:58 pm, Chris Angelico <ros... at gmail.com> wrote:
> On Thu, Dec 15, 2011 at 9:47 PM, Robert Kern <robert.k... at gmail.com> wrote:
> >  42 = 2 mod 5
> >  2 = 42 mod 5
>
> It might make more sense to programmers if you think of it as written:
>
> 42 = 2, mod 5
> 2 = 42, mod 5
>
> ChrisA

For the record I should say that the guy who taught me abstract
algebra, said about as much:
He said that the notation
a == b mod n
should be written as
a ==n b
(read the == as 3 horizontal lines and the n as a subscript)



More information about the Python-list mailing list