Message4618

Author doublep
Recipients doublep
Date 2009-04-29.13:53:16
SpamBayes Score 4.176104e-12
Marked as misclassified No
Message-id <1241013197.83.0.539517601243.issue1333@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-04-29 13:53:18doublepsetrecipients: + doublep
2009-04-29 13:53:17doublepsetmessageid: <1241013197.83.0.539517601243.issue1333@psf.upfronthosting.co.za>
2009-04-29 13:53:17doubleplinkissue1333 messages
2009-04-29 13:53:17doublepcreate