From: Tom W. <to...@ss...> - 2002-01-10 16:42:43
|
In a Jython script, I import a Java class with: from jp import * unfortunately, inside "jp" is a method named "abs" which takes one argument of a highly specialized type (non-python). After this import, if I try to do: abs(3) I get an error that the argument could not be coerced to the "specialized type" required by the "jp.abs()" method. While there are "workarounds" for this (like an explicit "from jp import x,y,z"), I'd like to know if there is anything else I can do so that script-writers won't inadvertantly run into this. I have spoken with the own of the library that "jp" is contained in about simply changing the method names, but any other suggestions would be welcomed. Thanks. tom -- Tom Whittaker University of Wisconsin-Madison Space Science and Eng. Center ph: 608.262.2759 |