Deprecating reload() ???

Skip Montanaro skip at pobox.com
Mon Mar 15 06:57:19 EST 2004


    Hung Jung> But it is true that in Python you have to implement dynamic
    Hung Jung> refreshing of behavior (module or class) explicitly, whereas
    Hung Jung> in Ruby, as I understand, class behavior refreshing is
    Hung Jung> automatic.

That has its own attendant set of problems.  If an instance's state is
created with an old version of a class definition, then updated later to
refer to a new version, who's to say that the current state of the instance
is what you would have obtained had the instance been created using the new
class from the start?

Skip




More information about the Python-list mailing list