How to re import a module
Rafael Durán Castañeda
rafadurancastaneda at gmail.com
Fri Apr 8 03:09:10 EDT 2011
More information about the Python-list mailing list
Fri Apr 8 03:09:10 EDT 2011
- Previous message (by thread): How to re import a module
- Next message (by thread): Chances in Management careers.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
That's really easy: >>> import re >>> reload(re) <module 're' from '/usr/lib/python2.6/re.pyc'> >>> In python2.x, but if you are using python3.x I think is different, really easy to know if you search in python docs. 2011/4/8 <hidura at gmail.com> > 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. > > > --- > Thanks in advance > Diego Hidalgo > -- > http://mail.python.org/mailman/listinfo/python-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20110408/b55872fa/attachment-0001.html>
- Previous message (by thread): How to re import a module
- Next message (by thread): Chances in Management careers.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list