* Gary Herron (Tue, 21 Aug 2007 09:09:13 -0700) > Robert Dailey wrote: > > Note: I'm using Python on Windows > > > > I have an application that allows a user to submit a password as a > > command line parameter. The password of choice may contain any > > characters the user wishes, including quotes. If I do the following: > > > > python password.py "9999"MyPassword > > > > The resulting output when I print this inside the script is: > > > > 9999MyPassword > > > > Notice how the quotations have been stripped. Is it DOS doing this, or > > Python? Is there a way I can fix it? > > Not Python. It never even sees those quotes. Whatever system you are > using for entering the text is stripping them. Is it the command prompt > (cmd.exe)? If so then you can escape the quote by preceding it with a > backslash. (This is true of the DOS prompt [...]
No, under Cmd it's "^". -- http://mail.python.org/mailman/listinfo/python-list