That's really easy:<br><br>>>> import re<br>>>> reload(re)<br><module 're' from '/usr/lib/python2.6/re.pyc'><br>>>> <br><br>In python2.x, but if you are using python3.x I think is different, really easy to know if you search in python docs.<br>
<br><div class="gmail_quote">2011/4/8 <span dir="ltr"><<a href="mailto:hidura@gmail.com">hidura@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello i want to know the best way to re import a module, because i have a web server with just one Apache session for all my domains and applications, and i if i need to make some changes on one application restart the server will affect the others, so i was thinking in 2 ways the first will be 're imported' the module, the second use subprocess. First the less unsecured that in this case i think is re import the module, give me your opinions please.<br>
<br><br>---<br>Thanks in advance <br>Diego Hidalgo<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br>