From: Brad C. <bk...@mu...> - 2001-01-10 16:40:54
|
On 10 Jan 2001, at 16:25, Finn Bock wrote: > >For some reason the @sig line in the code below doesn't work. The > >resulting .java file doesn't have a public Put() method.. > > The class *must* inherit from a java class. F.ex > > from ftplib import FTP > import java > > class FTPClient(java.lang.Object): Thanks for the suggestion, but it still doesn't work. Somehow I thought that inheritance from Object was implied for all classes in Jython.. Since all objects are a subclass of Object in Java In any case, changing it to: class FTPClient(java.lang.Object): Still doesn't produce a public Put method. > Also, the @sig must be placed on one single line. It was probably just > your (or my) mailer that did the line folding. Mailer wrapped it, it is all on one line in the .py file. This is very strange because I have another .py module where it does work. Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements |