"Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Mon, 09 Apr 2007 08:21:44 -0300, Duncan Booth
><[EMAIL PROTECTED]> escribió:
>
>> <[EMAIL PROTECTED]> wrote:
>>
>>> print r'\\.\'
>>
>> See the FAQ:
>> http://www.python.org/doc/faq/general/#why-can-t-raw-strings-r-strings
>> -end-with-a-backs
En Mon, 09 Apr 2007 08:21:44 -0300, Duncan Booth
<[EMAIL PROTECTED]> escribió:
> <[EMAIL PROTECTED]> wrote:
>
>> print r'\\.\'
>
> See the FAQ:
> http://www.python.org/doc/faq/general/#why-can-t-raw-strings-r-strings-end-with-a-backslash
This form is not included in the FAQ alternatives (should
"=?utf-8?B?5Lq66KiA6JC95pel5piv5aSp5rav77yM5pyb5p6B5aSp5rav5LiN6KeB5a62?="
<[EMAIL PROTECTED]> wrote:
> print r'\\.\'
>
> This line will cause error. I just want to print the
> \\.\
> why the prefix character "r" isn't effective. Thanks!
>
>
See the FAQ:
http://www.python.org/doc/faq/general
人言落日是天涯,望极天涯不见家 wrote:
> print r'\\.\'
>
> This line will cause error. I just want to print the
> \\.\
> why the prefix character "r" isn't effective. Thanks!
Because of the way in which Python parses strings,
you can't end a string -- even a raw one -- with
an odd (1, 3, 5 etc) number of backsla
print r'\\.\'
This line will cause error. I just want to print the
\\.\
why the prefix character "r" isn't effective. Thanks!
--
http://mail.python.org/mailman/listinfo/python-list