[melbourne-pug] raw string prob

Maurice Ling mauriceling at gmail.com
Mon Feb 1 06:01:21 CET 2010


Try
raw = r'J:\\'

In raw = r'J:\', the '\' escapes the close inverted comma, rendering an
unclosed string

Maurice LING
mobile: +6596669233, +6568707927
www: http://maurice.vodien.com
CV: http://maurice.vodien.com/maurice_resume.pdf
Linkedin: http://www.linkedin.com/in/mauriceling


On Mon, Feb 1, 2010 at 12:30 PM, Mike Dewhirst <miked at dewhirst.com.au>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
> >>>
>
> Thanks
>
> Mike
> _______________________________________________
> melbourne-pug mailing list
> melbourne-pug at python.org
> http://mail.python.org/mailman/listinfo/melbourne-pug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/melbourne-pug/attachments/20100201/fef856b4/attachment.htm>


More information about the melbourne-pug mailing list