Testing a class at the interactive prompt?

Dan Rawson daniel.rawson.take!this!out! at asml.nl
Wed Aug 13 19:45:40 CEST 2003


How can I reload a class at the interactive prompt??

 >>> from MyClass import MyClass1
 >>> x = MyClass1()
.....  edit MyClass.py to modify a method in another window . . .
 >>> reload(MyClass1) (or reload(MyClass), or ...)

which fails

 >>> from MyClass import MyClass1

doesn't give an error, but also doesn't get the newly modified method . . .

TIA . . . .

Dan





More information about the Python-list mailing list