[issue17366] os.chdir win32

Amaury Forgeot d'Arc report at bugs.python.org
Wed Mar 6 09:50:39 CET 2013


Amaury Forgeot d'Arc added the comment:

The backslash \ has a special meaning in strings: \n is the new line character, and \t is the tab character: http://docs.python.org/2/reference/lexical_analysis.html#string-literals

Try to print the string!
You could use \\, or raw strings r"like this".
Or just use forward slashes / which are allowed by Windows.

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17366>
_______________________________________


More information about the Python-bugs-list mailing list