[Tutor] trouble reading Programming Python

jonsoons@telocity.com jonsoons@telocity.com
19 Apr 2001 16:05:56 -0700


I am on page 47 of "Programming Python" 2nd Edition
and 3/4 of the way down the page there are a couple
of lines with three double quotes within:

print 'Got this" "%s"' % raw_input()

and

Got this" "Help! Help! I'm being repressed!"

It all makes sense apart from the first " in
each line. Are these characters protected from
interpretation in some way that the %s is not?
Why is this not a syntax error?

To quote the manual: "...r"\" is a valid string
literal, r"\"" is not..."