[Python-3000] Raw strings containing \u or \U (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 17 02:48:11 CEST 2007
- Previous message: [Python-3000] Raw strings containing \u or \U
- Next message: [Python-3000] Support for PEP 3131 (some links to evidence of usage within communities)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum wrote:
I'm still on the fence about the trailing backslash; I personally prefer to write Windows paths using regular strings and doubled backslashes.
Maybe we should have a special w"..." string in the Windows version of Python for pathnames.
It would raise a SyntaxError in non-Windows Pythons, thus discouraging people trying to use Windows pathnames in cross-platform code. :-)
-- 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 +--------------------------------------+
- Previous message: [Python-3000] Raw strings containing \u or \U
- Next message: [Python-3000] Support for PEP 3131 (some links to evidence of usage within communities)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]