Message130739
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 specifying root directory: r'C:\ '[:-1]
2. Using python to prepare command lines to run other command line programs, where an argument may require a final backslash to explicitly specify a target directory (as opposed to a file). |
|
Date |
User |
Action |
Args |
2011-03-13 12:36:03 | gwideman | set | recipients:
+ gwideman, georg.brandl, facundobatista, QuantumTim, v+python, r.david.murray, eli.bendersky, docs@python |
2011-03-13 12:36:03 | gwideman | set | messageid: <1300019763.52.0.929139365543.issue11479@psf.upfronthosting.co.za> |
2011-03-13 12:36:02 | gwideman | link | issue11479 messages |
2011-03-13 12:36:02 | gwideman | create | |
|