[Tutor] Question About chdir()

Ewald Ertl ewald.ertl at hartter.com
Mon Aug 8 09:16:24 CEST 2005

Hi Don!

Don Parris wrote:
> The book, "Programming Python", shows an example of os.chdir() on the
> Windows platform, as follows:
> os.chdir(r'c:\temp')

r ... raw Strings. There will no substitution be processed.
Otherwise the "\t" ( Tab ) will be inserted in the string:

>>> print "a\tb"
a	b
>>> print r"a\tb"

HTH Ewald

More information about the Tutor mailing list