What does r"""any text""" mean ?
Claudio Corrodi
corrodi.claudio at gmail.com
Wed Aug 15 05:21:26 EDT 2007
Hi Alexander,
Alexander Eisenhuth wrote:
> ... as you can find in os.py at line 1 ?
This is a raw string. Raw strings don't interpret the escape sequences.
Try this:
>>> print 'a\nb\tc'
a
b c
>>> print r'a\nb\tc'
a\nb\tc
You needn't use the raw string for printing the backslashes. You can
escape them like this:
>>> print 'a\\nb\\tc'
a\nb\tc
> Regards Alexander
Regards,
Claudio
More information about the Python-list
mailing list