[Python-Dev] "%%s %s"%"hi"%ho" works here and not there

Hunter Peress hfastjava@yahoo.com
Mon, 16 Jun 2003 05:02:41 -0700 (PDT)


In irc, I gave this unusually compact line as an answer to a slightly related question:
"%%s %s"%"hi"%ho" 

It ended up not working on a lot of the other users systems. "%%s %s"%a%b worked though on all i
believe.

Although this alone is probably too trivial to report to the list, it works on *my* 2.2.2 and 2.3b
and yet it worked no one elses.

Im on debian and the versions where this work are:

Python 2.2.2 (#1, Mar 21 2003, 23:01:54) 
[GCC 3.2.3 20030316 (Debian prerelease)]

and 

Python 2.3b1+ (#2, May 14 2003, 07:47:44) 
[GCC 3.2.3] on linux2


I've confirmed with a friend on debian unstable that his 2.2.3 and his 2.3b1 (built on june4) both
error out on the line above.

Anyway, i cant even figure out from the grammar whether this should or should not be allowed: 
http://python.org/doc/2.2/ref/strings.html


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com