[Python-ideas] Enhance reload

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Oct 1 03:11:38 CEST 2007


Joseph Maurer wrote:
> Please shot this down this high level implementation if it 
 > won't work in the current code base.

Joseph, you're going to have to learn more about how Python
works if you want to take this any further. It's not really
possible to discuss it in terms as high-level as this. You're
making some assumptions about the overall structure that
aren't really true.

There is an approach that might work, but it's rather
different. Instead of trying to load the new code directly
into the old module, load it into a new, temporary module
and then compare the contents of the two, transferring
selected parts where appropriate.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiem!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+



More information about the Python-ideas mailing list