Load / Reload module
Marius Butuc
mariusbutuc at gmail.com
Wed Feb 4 04:30:16 EST 2009
Hi,
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
interpreter.
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.
Thanks,
Marius
More information about the Python-list
mailing list