Bug in % string formatting?

Erik Max Francis max at alcyone.com
Thu Dec 20 16:44:28 EST 2001


Fernando Pérez wrote:

> It does surprise me though that % binds harder than +. I would naively
> think
> that by its nature, % would have fairly low precedence. Oh well, I'm
> sure
> there's a good reason for it being the way it is.

The reason is because % is also the modulo division operator.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Laws are silent in time of war.
\__/ Cicero
    Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
 An Esperanto reference for English speakers.



More information about the Python-list mailing list