From: Neil R. <ne...@bl...> - 2001-05-21 00:08:56
|
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. Thanks, Neil Computer Science is no more about computers than astronomy is about telescopes. -- E. W. Dijkstra |