niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » python
dynamic modules
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Grover
*nix forums beginner


Joined: 05 Feb 2005
Posts: 2

PostPosted: Sat Feb 05, 2005 3:21 am    Post subject: dynamic modules Reply with quote

What is the best way to add a modules loaded with __import__() to the
global namespace? Example:

foo = __import__( 'foo', globals(), locals(), ['*'] )

PS: what exactly are the parameters globals and locals used for?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 10:37 pm | All times are GMT
navigation Forum index » Programming » python
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Dynamic IP Issues, when Sever is on Fixed. spode Postfix 2 Tue Aug 14, 2007 2:10 pm
No new posts problem loading DSO modules Mauro Apache 5 Thu Jul 20, 2006 8:12 am
No new posts WG: WG: Vacation exim 4 dynamic ip problem Daniel Müller Exim 1 Tue Jul 18, 2006 1:02 pm
No new posts MDaemon and dynamic screening John Oxley Exim 1 Tue Jul 18, 2006 12:12 pm
No new posts WG: Vacation exim 4 dynamic ip problem Daniel Müller Exim 0 Tue Jul 18, 2006 7:05 am

Credit Cards | Car Finance | Bad Credit Mortgages | Bad Credit Loans | Online Name
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2147s ][ Queries: 16 (0.1032s) ][ GZIP on - Debug on ]