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
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
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
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