The format of filename

Tim Roberts timr at
Thu Oct 26 08:30:50 CEST 2006

Neil Cerutti <horpner at> wrote:
>Some experimentation shows that Python does seem to provide
>*some* translation. Windows lets me use '/' as a path separator,
>but not as the name of the root of a partition name. But perhaps
>this a peculiarity of the commands themselves, and not of Windows
>path names in particular.
>  C:\PYTHON24>CD /
>  The syntax of the command is incorrect.
>  C:\PYTHON24>CD \
>  The syntax of the command is incorrect.

The Windows APIs all accept either forward slashes or back, and have done
so clear back to Windows 3.0.  However, the Windows command shells do not.
That's what you're seeing here.
Tim Roberts, timr at
Providenza & Boekelheide, Inc.

More information about the Python-list mailing list