Testing a class at the interactive prompt?

Alexander Schmolck a.schmolck at gmx.net
Thu Aug 14 04:44:56 EDT 2003


Dan Rawson <daniel.rawson.take!this!out!@asml.nl> writes:

> 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 ...)

>>> reload(MyClass)
>>> from MyClass import MyClass1

or

>>> MyClass1 = MyClass.MyClass1

'as




More information about the Python-list mailing list