backslashes in lists

2007-03-12 Thread Fabio Gomes
Hi list, I'm trying to use a string with backslashes in a list. But Python parses strings in lists with repr().>>> alist = ['a', 'b', 'c:\some\path']>>> alist['a', 'b', 'c:\\some\\path']>>> print alist['a', 'b', 'c:\\some\\path'] I already tried str() and raw (r) but it didn't work. All I wan

RE: backslashes in lists

2007-03-12 Thread Fabio Gomes
fic string you will see that only one backslash remain: print alist[2]On 3/12/07, Fabio Gomes <[EMAIL PROTECTED]> wrote: Hi list, I'm trying to use a string with backslashes in a list. But Python parses strings in lists with repr().>>> alist = ['a', 'b

RE: backslashes in lists

2007-03-12 Thread Fabio Gomes
ed in my script. What do you think. Is it possible to print "list" without the doubled backslash? Thank again, Lucas. Date: Mon, 12 Mar 2007 12:15:10 -0300From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: backslashes in listsCC: [EMAIL PROTECTED] don't know how ugly this look like, b

RE: backslashes in lists

2007-03-12 Thread Fabio Gomes
path = 'file://D:\\A\\' + serverName[5:] attr2_value = ['value', path] attr2_List = [attr2_desc, attr2_name, attr2_required, attr2_value] attr_List = [attr1_List, attr2_List] property= ['systemProperties', attr_List] AdminConfig.modify(jvm, [property])print