Message677

Author bbouwens
Recipients
Date 2002-06-27.12:18:56
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In my application there is a line like

  item.attribute += "value"

which doesn't work. The attribute is looked up with
the __getattr__ method as item is a wrapper around a
Java object.

So this is effectively equivalent to

  item.__getattr__("attribute").__iadd__("value")

When I replace the above line with

  item.attribute.__iadd__("value")

it works fine. I noticed that the original version causes
a call to

  item.__setattr__(None)

(or something else instead of None) which is not to be
expected.
The problem went away when I commented out line 1293
of org/python/compiler/CodeCompiler.java  rev. 2.28.
That line must be useless (so by definition incorrect)
as the augbinop already does the store itself.
History
Date User Action Args
2008-02-20 17:17:06adminlinkissue574546 messages
2008-02-20 17:17:06admincreate