[Tutor] How can I make Python Shell see new version of functionsubroutine?
Alan Gauld
alan.gauld at freenet.co.uk
Mon Feb 20 00:36:33 CET 2006
> I pasted the function subroutines, one at a time, into the shell, and
> entered the carriage return directly into the shell between copies,
> and it worked.
I'm not sure why you are copying the code into the shell?
Do you know about modules and the import and reload statements
in Python?
You can write a script and then save it and import it
into the shell for testing. Change the script, save it and
then reload() it into the shell for further testing.
Not that intuitive I agree...
Alan G.
More information about the Tutor
mailing list