<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi All,<br>   I want to reload my Module after I fix bugs and want to instantiate an object of a class contained in this module.<br><br>Heres the pseudo code of what I want to do:<br><br>def rerun(testBlock) :<br>    op = testBlock.split('.')<br>    module = op[0] ; className = op[1]<br>    reload(module)<br>    # testBlock is a string, so it needs evaluation!<br>    newObject = testBlock()<br><br>rerun('ModuleName.className')<br><br><br>Obviously, line 4 and line 6 dont work today. <br>I want to know if there is any smart way to achieve this.<br>In my previous life (Tcl), I could use 'eval' or 'set' to achieve this.<br><br><br>thanks,<br>Rohit<br>                                         </div></body>
</html>