[Tutor] About the vertical bar input

Kent Johnson kent37 at tds.net
Mon Jun 29 20:51:36 CEST 2009

On Mon, Jun 29, 2009 at 1:24 PM, hyou<hyou00 at hotmail.com> wrote:

> I’m trying to write a script that simply execute a command line like:
> C:\...(path)..\Devenv solution /build “Debug|Win32”
> However, in Python the “|” symbol is reserved thus I just can’t make the
> command line above working once I added the “|” sign in it.
> How can I put the “original” vertical bar in a string?

You can put a vertical bar in a string;
In [1]: s = "Debug|Win32"

In [2]: print s

Can you show us the code you tried? My guess is that you are having
trouble getting the quoting correct.


More information about the Tutor mailing list