[docs] [issue11479] Add discussion of trailing slash in raw string to tutorial

Eli Bendersky report at bugs.python.org
Sun Mar 13 14:17:16 CET 2011


Eli Bendersky <eliben at gmail.com> added the comment:

> Ezio Melotti <ezio.melotti at gmail.com> added the comment:
>
> I would rephrase:
> +There is one subtle aspect to raw strings that is of special concern to
> Windows
> +programmers:  a raw string may not end in an odd number of ``\``
> characters.
>
> to something like:
> +There is one subtle aspect to raw strings: a raw string may not end in
> +an odd number of ``\`` characters.  That is of special concern while
> +dealing with Windows paths.
>
> Otherwise it seems that this problem only affects raw strings on Windows.
>

I agree, but I'd also say something about os.path.join when mentioning
Windows paths, because the vast majority of problems that require the
trailing backslashes can be solved with it.

----------
Added file: http://bugs.python.org/file21102/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11479>
_______________________________________
-------------- next part --------------
<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Ezio Melotti &lt;<a href="mailto:ezio.melotti at gmail.com">ezio.melotti at gmail.com</a>&gt; added the comment:<br>
<br>
I would rephrase:<br>
+There is one subtle aspect to raw strings that is of special concern to Windows<br>
+programmers:  a raw string may not end in an odd number of ``\`` characters.<br>
<br>
to something like:<br>
+There is one subtle aspect to raw strings: a raw string may not end in<br>
+an odd number of ``\`` characters.  That is of special concern while<br>
+dealing with Windows paths.<br>
<br>
Otherwise it seems that this problem only affects raw strings on Windows.<br></blockquote></div><br>I agree, but I&#39;d also say something about os.path.join when mentioning Windows paths, because the vast majority of problems that require the trailing backslashes can be solved with it.<br>

</div>


More information about the docs mailing list