chdir()

Necmettin Begiter necmettin.begiter at gmail.com
Tue May 8 16:03:47 EDT 2007


On Tuesday 08 May 2007 22:54:39 HMS Surprise wrote:
> WindowsError: [Error 123] The filename, directory name, or volume
> label syntax is incorrect: 'c:\twill'.
>
> What is wrong with the syntax?

Try 'c:\\twill' because the '\' character is the escape character.
Eg: \n is new-line (aka crlf)
\t is tab etc.

To understand how these work, try this:

print 'hello\nworld'

and you get:

hello
world




More information about the Python-list mailing list