News for hackers. Stuff that matters.
Re:Runtime code modification. Erlang? No, Python by perfunctory on Thursday August 18, 2011 @11:26AM (#2899537)
> Soon enough I found the issue:

I am just wondering how long would it take if the author and the Bad Engineer were different people.

Btw, it's still not the same as Erlang. So, I don't think the title is fare.

Re:Runtime code modification. Erlang? No, Python by ericmoritz on Thursday August 18, 2011 @11:32AM (#2899564)
I haven't tried this but I wonder if hot loading code could be done using the manhole and the reload() BIF.
Re:Runtime code modification. Erlang? No, Python by wulczer on Thursday August 18, 2011 @11:36AM (#2899587)
Probably not, Python's reload has its fair share of caveats. There was an effort in Twisted to provide robust reloading support for Python modules[1], but I think it's a bit abandoned.

That being said, we are using reload() with manhole to update code. You just have to be extra careful and know what you're doing.

[1] http://twistedmatrix.com/documents/11.0.0/api/twisted.python...