newbie: concatenate literals (using jython)

2005-12-22 Thread davidmichaelkarr
I'm using Jython (actually WebLogic WLST), and trying to do something really simple. I want to create a string from two function calls and a literal, like: serverport = server.getListenAddress() + ':' + server.getListenPort() This complains: TypeError: __add__ nor __radd__ defined for these o

jython: True and False boolean literals?

2005-12-22 Thread davidmichaelkarr
Aren't there boolean literals for "True" and "False" in Python (jython)? I can't get "true", "True", "false", or "False" to work. I ended up having to use "(1==1)" and "(1==0)". -- http://mail.python.org/mailman/listinfo/python-list

jython/wlst: How to avoid newlines in output from "cd" command (and others)

2005-12-23 Thread davidmichaelkarr
I'm using WebLogic Scripting Tool, which uses Jython, which uses Python 2.1. In a script I'm writing, executing a "cd()" always emits a newline to stdout. Is there a way to make it not emit that newline on the "cd()" command (and others like it)? -- http://mail.python.org/mailman/listinfo/pytho