Windows - Need to process quotes in string...

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Mon Oct 31 10:39:46 EST 2005


Ernesto enlightened us with:
> I'm trying to use a $ delimeter

Why?

> I want to send the string parameter:
>
> enable "@USB\VID_0403&PID_6010&MI_00\7&15E4F68&1&0000"

launchWithoutConsole("devcon.exe"
    'enable "@USB\VID_0403&PID_6010&MI_00\7&15E4F68&1&0000"')

Or, if you should also be able to send single quotes:

launchWithoutConsole("devcon.exe"
    '''enable "@USB\VID_0403&PID_6010&MI_00\7&15E4F68&1&0000"''')

> The argument itself is a string, but has quotes inside too.

Then use other quotes as string delimiters. Why would you use
something else?

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list