En Mon, 12 Mar 2007 12:30:59 -0300, Fabio Gomes <[EMAIL PROTECTED]>
escribió:
> Nice, Lucas. But help me again, please. What about "echoing" the
> list:>>> str(alist).replace('','\\')"['a', 'b', 'c:\\some\\path']"
The \ character is used as an escape character, to represent some
non-pr
27;webserver':
continue
serverName = AdminConfig.showAttribute(serverID, 'name')
print 'Atualizando o servidor', serverName, '...'
jvm = AdminConfig.list('JavaVirtualMachine', serverID)
path = 'file://D:\\A\\' + serverName[5:]
at
It didn't work. I decided to submit the code in the list.It is a script running
with Jython to modify some configurations in the Websphere Application Server
that has a Java like command line that interprets jython or jacl. I decided to
use Jython.All the properties in that server are stored in
27;path', 'c:\\some\\path']]
That's how it is coded 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 -0300
From: [EMAIL PROTECTED]
T
Nice, Lucas. But help me again, please. What about "echoing" the list:>>>
str(alist).replace('','\\')"['a', 'b', 'c:\\some\\path']" Because in my
script I'm echoing the list to mount lists into lists, like:>>> list1 =
['name', 'test']>>> list2 = ['path', 'c:\some\path']>>> list = [list1,
On Mon, 2007-03-12 at 18:08 +0300, Fabio Gomes wrote:
> Yes, Luca.
>
> I noticed that printing the list item will show the string as
> expected. But I need to print the entire list in the script I'm
> writing and doing that, the list will will be repr()'ed. Is there any
> way to print the entire
list in the script I'm writing and doing
that, the list will will be repr()'ed. Is there any way to print the entire
list without being parsed by repr()?
--
Date: Mon, 12 Mar 2007 12:00:19 -0300
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject:
Yes, Luca. I noticed that printing the list item will show the string as
expected. But I need to print the entire list in the script I'm writing and
doing that, the list will will be repr()'ed. Is there any way to print the
entire list without being parsed by repr()?
Date: Mon, 12 Mar 2007 12
The backslash is a key to enter especial characters, like breakline: '\n'
There is two backslashes cause of this especial condition of this char, but
if you try print the specific string you will see that only one backslash
remain:
print alist[2]
On 3/12/07, Fabio Gomes <[EMAIL PROTECTED]> wrot