When you create a Python module, you can use a test script wich import your module. But you probably have noticed that when you run the test script, it always use the first version of your module even if you made changes in the code.
This is because the import statement check if the module is already in memory and do the import stuff only when this is mandated.
You can use the reload() function but this is quite difficult if you do changes in a module wich isn't directly imported by your test script.
A good solution could be to remove all modules from memory before running the test script. You only have to put some few lines at the start of your test script. This python script shows you how to do that.
Top 4 Download periodically updates information of Reloading all modules 1.0 script from the developer, but some information may be slightly out-of-date.
Our script download links are directly from our mirrors or publisher's website. Reloading all modules 1.0 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!