Category: caching

delete *.pyc

I have three modules as: one.py: def abc(): print “Heeeeeeeeeeeiiiiiioooooooooo” two.py: import one def defg(): one.abc() three.py: import os from time import sleep import two two.defg() sleep(20) directory = os.listdir(‘.’) for filename in directory: if filename[-3:] == ‘pyc’: print ‘- ‘ + filename os.remove(filename) I have three doubts.Kindly help me. When i run three.py for […]