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

2012-11-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: behavior -> enhancement versions: +Python 3.4 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-li

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

2011-03-13 Thread R. David Murray
R. David Murray 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 that point), but it made

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

2011-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: That would of course be a good addition too. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2011-03-13 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file21102/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2011-03-13 Thread Eli Bendersky
Eli Bendersky added the comment: > Ezio Melotti 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

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

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

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

2011-03-13 Thread Graham Wideman
Graham Wideman 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 examples: 1. When writing the string s

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

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

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

2011-03-12 Thread R. David Murray
New submission from R. David Murray : 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: patch messages: 130720 n