Bug in % string formatting?

Erik Max Francis max at alcyone.com
Fri Dec 21 20:36:14 CET 2001


Michael Hudson wrote:

> Which is in turn a reason for not overloading operators too much.
> Anyone ever done this:
> 
> cout << var ? "true" : "false";
> 
> in C++?  It was *years* before I realised why that didn't work...

It's a better reason for using parentheses when you're not sure about
operator precedence.  Parentheses never hurt.

-- 
 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