Changes by Ezio Melotti ezio.melo...@gmail.com:
--
type: behavior - enhancement
versions: +Python 3.4 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11479
___
Graham Wideman initcont...@grahamwideman.com added the comment:
Eli: Excellent and thoughtful point. This would indeed be exactly the place to
suggest os.path.join as an alternative.
In addition, there are still occasions where one needs to form a string with
trailing backslash. Two
Ezio Melotti ezio.melo...@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:
Eli Bendersky eli...@gmail.com added the comment:
Ezio Melotti ezio.melo...@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
Changes by SilentGhost ghost@gmail.com:
Removed file: http://bugs.python.org/file21102/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11479
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
That would of course be a good addition too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11479
___
R. David Murray rdmur...@bitdance.com added the comment:
Well, the problem with both [:-1] and os.path.join is that they are
inappropriate for that section of the tutorial. I considered putting the
discussion later in the section so that I could use [:-1] (which hasn't been
introduced at
New submission from R. David Murray rdmur...@bitdance.com:
Here is a proposed addition to the tutorial noting the problem with using raw
strings for windows paths and how to work around it.
--
assignee: docs@python
components: Documentation
files: tutorial-raw-string.patch
keywords:
Eli Bendersky eli...@gmail.com added the comment:
Would it not be better to just recommend Windows users not to put that last
backslash in at all? IIUC it's only needed to later append file names to
directory names, but that's better achieved with os.path.join
--
nosy: +eli.bendersky