From: John G. <jgo...@co...> - 2001-11-15 18:24:40
|
Hi, This has to be one of the weirdest errors I've ever seen. I have a Python class that subclasses a Java class. The Java superclass has a class variable named user. Attempting to read it (ie, print self.user) in the Python subclass generates an exception with the message "Write-only attribute." Of what use a write-only attribute is to anybody is beyond me! I finally worked around it by writing an accessor method in Java. Sigh. Note: I even tried making the variable public in the Java class in case security was the problem. It wasn't. |