|
From: <bc...@wo...> - 2000-12-21 15:02:14
|
[Samuele]
>The issue is clear to me, the cause of this is the following piece of
>code that I left around as it was:
>
>
> if (ret != null) {
> // Allow a package component to change its own meaning
> PyObject tmp = __dict__.__finditem__(attr);
> if (tmp != null)
> ret = tmp;
> __dict__.__setitem__(attr, ret);
> return ret;
> }
>
>Is that really necessary, I should study a little better CPython semantics.
>Then I will post a fixed fix <wink>.
Make sure that this example still works with your fix. My simple attempt
to solve it (by removing the three "tmp" lines), caused this to fail:
Jython 2.0alpha2 on java1.3.0 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> from pawt import swing
>>> swing
<java package javax.swing at 4504063>
>>> from pawt import swing
>>> swing
<java package javax.swing at 4504063>
>>>
regards,
finn
|