New Python 3.0 string formatting - really necessary?

Mel mwilson at
Sun Dec 21 17:06:51 CET 2008

Duncan Booth wrote:

> I don't see that. What I suggested was that a % b % c would map to
> a.__mod__(b,c). (a % b) % c would also map to that, but a % (b % c) could
> only possibly map to a.__mod__(b.__mod__(c))

There's a compiling problem here, no?  You don't want a%b%c to implement as
a.__mod__(b,c) if a is a number.


More information about the Python-list mailing list