In article <[EMAIL PROTECTED]>, Kent Johnson wrote: > Jan Gregor wrote: >> Hello folks >> >> I want to apply changes in my source code without stopping jython >> and JVM. Preferable are modifications directly to instances of >> classes. My application is a desktop app using swing library. > > Can you be more specific? Python and Jython allow classes to be modified at > runtime without changing the source code or compiling new code. For example > you can add and remove methods and attributes from a class and change the > base classes of a class. You can also modify individual instances of a class > to change their attributes and behaviour independently of other instances of > the class. What are you trying to do? For example see > http://groups.google.com/group/comp.lang.python/browse_frm/thread/8f7d87975eab0ca4/18215f7ce8f5d609?rnum=15#18215f7ce8f5d609 > http://groups.google.com/group/comp.lang.python/browse_frm/thread/a0b19b37ac48deaa/e599041de4b8feb0?rnum=22#e599041de4b8feb0 > > Kent
thanks for links, I'll look at them. Alan showed me some possibilities, i'm not quite sure how to initiate modification and the way import keyword works in case of modified imported modules. my typical scenario is that my swing application is running, and i see some error or chance for improvement - modify sources of app, stop and run application again. so task is to reload class defitions (from source files) and modify also existing instances (their methods). Jan -- http://mail.python.org/mailman/listinfo/python-list