[melbourne-pug] raw string prob
Mike Dewhirst
miked at dewhirst.com.au
Mon Feb 1 06:27:08 CET 2010
Thanks everyone - the stackoverflow discussion was interesting.
Mike
On 01/02/2010, at 4:04 PM, Richard Jones <r1chardj0n3s at gmail.com> wrote:
> On 01/02/2010, at 3:30 PM, Mike Dewhirst wrote:
>> Can anyone please explain tyhis for me?
>>
>> Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit
>> (Intel)] on win32
>> Type "help", "copyright", "credits" or "license" for more
>> information.
>>>>> raw = r'J:\'
>> File "<stdin>", line 1
>> raw = r'J:\'
>> ^
>> SyntaxError: EOL while scanning string literal
>>>>>
>
> http://stackoverflow.com/questions/647769/why-cant-pythons-raw-string-literals-end-with-a-single-backslash
>
> (quick answer: it's because the quote character may be escaped with
> the backslash even in a raw string)
>
>
> Richard
>
> _______________________________________________
> melbourne-pug mailing list
> melbourne-pug at python.org
> http://mail.python.org/mailman/listinfo/melbourne-pug
More information about the melbourne-pug
mailing list