exceptions
Alexander Schmolck
a.schmolck at gmx.net
Thu Jun 3 07:37:37 EDT 2004
hungjunglu at yahoo.com (Hung Jung Lu) writes:
> Alexander Schmolck <a.schmolck at gmx.net> wrote:
>> [1] Here are a few of the hacks I'm using, in case anyone might
>> find them useful -- or even better tell me about better
>> alternatives (If someone has cooked something reasoable
>> for reloading modules, I'd love to hear about it).
>
> I have already answered to you on one previous occasion,
Sorry, maybe I missed it (at the time I had no access to a reliable
newsserver, so many articles didn't show up).
> and told you another time in this present thread.
Yep, I've guessed correctly that your mention of weakrefs alluded to a
technique along those lines -- I haven't finished my reply to your article yet
as I sunk quite a bit of time on debugging IPython yesterday.
> I've used this kind of trick in wxPython. It's good for interactively
> developing widgets, without re-starting your program.
>
> Now here is a third try. :)
Thanks for your trying again, I've only had time for a glance but this looks
quite neat -- I notice that it has evolved a bit since your original posting
:)
So far I have shied away from a metaclass based solution, as I got by with the
simple hack I posted and this hack doesn't require modifications to source
code. Another reason was that metaclasses don't combine well, but since I
haven't ended up using metaclasses much so far that might not be a problem. So
thanks for posting this, it looks quite useful.
'as
More information about the Python-list
mailing list