Title / Description
Code if include in module: del(self.previousModules[module]) def new(self): return list( set( sys.modules ).difference(set( self.previousModules )) ) def rollback(self): new=self.new() #force reload when modname next imported for module in new: if sys.modules.has_key(module): if sys.modules[module]: print 'reload %s'%sys.modules[module] del(sys.modules[module]) #clean sys.modules dict for module in sys.modules.keys():
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code