Can I get a technical explanation on the following error
Chris Rebert
clp2 at rebertia.com
Sun May 24 16:24:09 EDT 2009
On Sun, May 24, 2009 at 1:14 PM, grocery_stocker <cdalten at gmail.com> wrote:
> On May 24, 11:47 am, Hans Müller <heint... at web.de> wrote:
>> Try this:
>>
>> print "\\"
>>
>> \ is the escape character, it masks the meaning of the next chararcter.
>>
>> If you write print "\" python tries to print " (the meaning of " as
>> the string delimiter is beeing masked) and finds no closing "
>> This is why you got the error.
>>
>
> So something like
>
> "\"
>
> changes the meaning of " ? How? Does it just shift the ASCII bit(s)?
No, the Python parser handles it when it parses string literals.
Cheers,
Chris
--
http://blog.rebertia.com
More information about the Python-list
mailing list