Deprecating reload() ???

David MacQuigg dmq at gain.com
Sat Mar 13 16:19:26 CET 2004


On Fri, 12 Mar 2004 15:17:54 -0600, Skip Montanaro <skip at pobox.com>
wrote:
>
>    Dave> Another "brute force" kind of solution would be to replace the old
>    Dave> objects with links to the new.  Every refence, no matter where it
>    Dave> came from, would be re-routed.  The inefficiency would only last
>    Dave> until you restart the program.
>
>That would require that you be able to transmogrify an object into a proxy
>of some sort without changing its address.  In theory I think this could be
>done, but not in pure Python.  It would require a helper written in C.

How about if we could just show the reference counts on all of the
reloaded objects?  That way we could know if we've missed one in our
manual search and update.  Could avoid the need for transmogrification
of objects. :>)

-- Dave




More information about the Python-list mailing list