newbie: concatenate literals (using jython)
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 operands I've looked at various references, and this seems like the way I'm supposed to do this, but I'm obviously missing something. Note that "getListenPort()" returns an int. Is that a problem? -- http://mail.python.org/mailman/listinfo/python-list
jython: True and False boolean literals?
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)
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/python-list