Load / Reload module

Marius Butuc mariusbutuc at gmail.com
Wed Feb 4 10:30:16 CET 2009


First I must state that I'm a beginner in Python, so all help would be
more than welcomed.

I want do declare some classes (classes.py) in an external editor,
than import the file and use the classes. After I change the file, I
want to reload the definitions w/o leaving the interactive

So far I have tried
- import classes               # doesn't import my classes
- from classes import *     # imports, but I can't reload
- reload(classes)              # I have the same class definition
after this

I've tried the documentation but I got lost, so please help.


More information about the Python-list mailing list