[Pythonmac-SIG] Reload() not working?

Aureli Soria Frisch Aureli.Soria_Frisch@ipk.fhg.de
Mon, 23 Jul 2001 16:47:12 +0200


At 12:05 Uhr +0200 23.07.2001, Jack Jansen wrote:

>Note that this is expected behaviour. If you create an object with the old
>module and then reload the module the old object will still refer to the old
>module. If you think about how Python objects work this is no more than
>logical: there's no way Python can go into the object and change its class
>(and thereby its methods) on the fly. Only newly created objects will get the
>new class and methods.

Ok! The methods are actualized when the new object is created after the
reload().

Thanks!

#################################
Aureli Soria Frisch
Fraunhofer IPK
Dept. Pattern Recognition

post: Pascalstr. 8-9, 10587 Berlin, Germany
e-mail:aureli@ipk.fhg.de
fon: +49 30 39006-150
fax: +49 30 3917517
#################################