Message97
Here is an example:
JPython 1.1beta4 on java1.2 (JIT: symcjit)
Copyright (C) 1997-1999 Corporation for National Research Initiatives
>>> import PyFrameworkConfig
>>> import PyFrameworkTest
>>> config = PyFrameworkConfig()
>>> test = PyFrameworkTest(config)
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: PyFrameworkTest(): 1st arg can't be coerced to PyFrameworkConfig
The PyFramework* classes are written in Java, are in the default package, and
are available in the classpath with with the interpreter is run.
PyFrameworkConfig is defined as:
public class PyFrameworkConfig {
public int theInt = 0;
public int theSleepTime = 0;
}
and PyFrameworkTest is defined as:
public class PyFrameworkTest implements Runnable {
int myTestInt = 0;
int mySleepTime = 0;
public PyFrameworkTest(PyFrameworkConfig config) {
myTestInt = config.theInt;
mySleepTime = config.theSleepTime;
[snip]
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:40 | admin | link | issue222826 messages |
2008-02-20 17:16:40 | admin | create | |
|