Re: how to use the string '\\.\'

2007-04-09 Thread Duncan Booth
"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

Re: how to use the string '\\.\'

2007-04-09 Thread Gabriel Genellina
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

Re: how to use the string '\\.\'

2007-04-09 Thread Duncan Booth
"=?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

Re: how to use the string '\\.\'

2007-04-09 Thread Tim Golden
人言落日是天涯,望极天涯不见家 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

how to use the string '\\.\'

2007-04-09 Thread 人言落日是天涯,望极天涯不见家
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