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

2012-11-08 Thread Ezio Melotti
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 ___

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

2011-03-13 Thread Graham Wideman
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

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

2011-03-13 Thread Ezio Melotti
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:

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

2011-03-13 Thread Eli Bendersky
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

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

2011-03-13 Thread SilentGhost
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 ___

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

2011-03-13 Thread Ezio Melotti
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 ___

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

2011-03-13 Thread R. David Murray
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

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

2011-03-12 Thread R. David Murray
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:

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

2011-03-12 Thread Eli Bendersky
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