From: Andres Corrada-E. <co...@ci...> - 2001-10-25 18:28:52
|
Hi Robert, The files I'm using can be seen at: http://aspn.activestate.com/ASPN/Mail/Message/Jython-users/819819 I've gone further and confirmed that if my Foo.java code makes the attribute public, everything works fine. This seems to contradict the Java transparency claim for Jython also: -I can write Java classes that use Foo.java and they can access Foo's attributes without having to make those attributes public. -A python class can only access explicitly public attributes. On Thu, 25 Oct 2001, Robert W. Bill wrote: > > Is this the random postings from a while back, or something new > I'm not seeing yet? I actually have a few minutes to take a good > look this afternoon rather than the guesses sent so for :) If you > could point me to these simple files it would help. > > Tnx, > Robert The problem with calling java.util.Random's initializer was solved by a posting made by Finn. This thread is about my next step: getting a Python class to access package variables. To simplify the problem, I have come up with the simple files shown in the URL above. Thanks for your help on this. Andres Corrada-Emmanuel Senior Research Fellow Center for Intelligent Information Retrieval University of Massachusetts, Amherst |