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

Chris Angelico rosuav at gmail.com
Fri Dec 16 00:01:57 EST 2011


On Fri, Dec 16, 2011 at 1:58 PM, MRAB <python at mrabarnett.plus.com> wrote:
> In financial circles it could be an operator for calculating
> percentages, eg. "5 % x" would be 5 percent of x.
>
> It's an oddity, but an established one. :-)

And I would be most sorry to see % renamed to mod in Python.

"Hello, %s! My favourite number is %d." mod ("Fred",42)   # This just
looks wrong.

ChrisA



More information about the Python-list mailing list