Message97

Author bckfnn
Recipients
Date 2000-11-18.19:22:57
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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]
History
Date User Action Args
2008-02-20 17:16:40adminlinkissue222826 messages
2008-02-20 17:16:40admincreate