From: <Mat...@i2...> - 2001-10-02 18:29:22
|
On 10/01/2001 05:36:42 PM jython-users-admin wrote: > > class Foo(java.lang.Object): > def __init__(self, blah): > "@sig public Foo(String blah)" > self.blah = blah > def doSomething(): > blah.doSomethingElse() > > The @sig doc strings are a feature only of jythonc, they make a > method java visible (the class will have a concrete java method > with that signature) otherwise unless overriding a method is just a > pure Python method not directly accessible from Java side. > So in in this case doSomething will remain a pure Python method. Cool, thats exactly what I needed - I didn't know you could translate a python __init__ to a java constructor. Thanks, Matt |