Problem with a tuple - newbie ignorance

Ben Hutchings ben.hutchings at roundpoint.com
Tue Jan 23 19:54:16 EST 2001


Neil Schemenauer <nas at arctrix.com> writes:

> On Tue, Jan 16, 2001 at 11:30:29PM +0000, Keith F. Woeltje wrote:
> > Normal (forward) slashes won't however work in a command prompt
> > window in Win2000.  Does the python interpreter make the change
> > "magically" (like it does the end of line marker)?
> 
> No.  I believe the Win32 API accepts either / or \ as a path
> separator .  Its the command shell that's braindead.  They can't
> use / because its used to signal a flag.  I guess Win2000 still
> shows its CP/M heritage.

Under DOS and Windows, each program is responsible for parsing its own
command lines.  So some commands, including those built into the
command interpreter, reserve / as a switch introducer, but others do
not.

-- 
Any opinions expressed are my own and not necessarily those of Roundpoint.



More information about the Python-list mailing list