Hi.
> I wrote some Python code that facilitates dynamic class extension at
> runtime for external and internal method invocations. As part of that, it
> modifies the __bases__ attribute on classes. Under CPython, this works
> fine. Jython, though, explicitly does not allow __bases__ to be modified.
> Just for kicks, I modifed the PyClass.java file to go ahead and allow the
> modification, and it seems to be happy enough. But I assume there was a
> reason for not allowing the assignment, and am wondering if there's some
> particularly nasty Jython scenario lurking out there waiting for me to
> tickle it? Any insight would be appreciated.
>
The latest CVS version, also supports this kind of dynamic change.
On the other hand it supports it the naive way.
The particularly nasty Jython scenario is trying to push the limit
playing with java base classes (removing, or substituting ...)
regards, Samuele Pedroni.
|