Message4618
Java code:
public interface Foo
{
void setFoo (int foo);
}
public class FooImpl implements Foo
{
private int foo;
public int getFoo ()
{
return foo;
}
public void setFoo (int foo)
{
this.foo = foo;
}
}
Python code:
import FooImpl
x = FooImpl ()
x.foo
Result:
Exception in thread "main" Traceback (most recent call last):
File "test.py", line 4, in <module>
x.foo
If the getter comes from an interface it seems to work. I.e. you can
assign to the attribute.
Tested with 2.5b4. |
|
Date |
User |
Action |
Args |
2009-04-29 13:53:18 | doublep | set | recipients:
+ doublep |
2009-04-29 13:53:17 | doublep | set | messageid: <1241013197.83.0.539517601243.issue1333@psf.upfronthosting.co.za> |
2009-04-29 13:53:17 | doublep | link | issue1333 messages |
2009-04-29 13:53:17 | doublep | create | |
|