[Python-ideas] raw strings
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Oct 2 03:11:28 CEST 2007
Steven Bethard wrote:
> I write quite a few Windows paths, and
> probably make the final-backslash mistake once a week.
If you were using os.path.join(), as you should be,
you wouldn't ever have to write a trailing backslash
in a path in the first place. Or any backslashes at
all, for that matter.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiem! |
Christchurch, New Zealand | (I'm not a morning person.) |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Python-ideas
mailing list