durusmail: quixote-users: mod_python, quixote, reloads
mod_python, quixote, reloads
2003-03-17
2003-03-18
2003-03-18
2003-03-18
2003-03-20
2003-03-20
Re: mod_python, quixote, reloads
2003-03-21
2003-03-20
2003-03-18
mod_python, quixote, reloads
Andrew Kuchling
2003-03-20
On Thu, Mar 20, 2003 at 11:40:47AM -0600, Kendall Grant Clark wrote:
>It works in -- among others, I'm sure -- Erlang, Smalltalk, and Common
>Lisp long-running processes; I'm curious about which Python features or
>semantics (or implementation details, for that matter) prevent it from
>accomplishing this attainable goal. (It really is a very nice capability
>to have, obviously.)

Implementation details.  When you create an object, it has a reference
directly to the corresponding class object.  When you do
'reload(module)', a new set of class objects gets created, but
existing instances have references that point to the old class
instances.

See the thread starting at
http://mail.python.org/pipermail/python-dev/2000-January/001803.html
for a discussion.  Sadly the thread never converged on a solution (or
if it did, I missed it).

--amk                                                    (www.amk.ca)
What a sentimental old thing this TARDIS is!
      -- The Doctor, in "The Enemy Within"

reply