Re: [Python-ideas] Proposal for an enhanced reload mechanism

(Sorry, I sent an html-formatted email by accident) --- On Tue, 10/19/10, Chris Kaynor <ckaynor@zindagigames.com> wrote:
Yes, this is a limitation of the approach. More generally, any logic that has already run and would execute differently with the reloaded module has the potential to break things. Even with this limitation I think the approach is still valuable. I spend far less time modifying __new__ methods and metaclasses than I spend changing the implementation and API ofother class- and module-level methods. The issue of old instances not having members that are added in a new __init__ is problematic, but there are several workarounds such as temporarily wrapping the new member in a property, or potentially the @reloadable decorator alluded to in the doc.
participants (1)
-
Peter Ingebretson