From: John G. <jgo...@co...> - 2001-08-31 21:14:33
|
Hi, I'm trying out Jython for the first time but the documentation have not covered this scenario: I want to make a class that is callable by Java, that is a child only of java.lang.Object, whose constructor can take 0 or 1 arguments. There seems to be no way to specify two @sig lines. Eg: import java class Foo(java.lang.Object): def __init__(self, arg=None): """@sig public Foo() @sig public Foo(String arg)""" if arg: print arg else: print "No arg passed" However this is unacceptable to Jython. How does one do this? -- John Goerzen <jgo...@co...> GPG: 0x8A1D9A1F www.complete.org |