Need clue with import hackery

Steven D. Majewski sdm7g at Virginia.EDU
Fri Aug 3 03:29:44 CEST 2001


On Thu, 2 Aug 2001, I absentmindedly wrote:

> 
> You might also want to add: 
> 
> 	sys.modules['instance'] = instance 
> 

Nevermind! 
I forgot that your original problem was when instance is 
already another  module name. 

If the names are not going into sys.modules, then I must assume
that they are only going to be imported once. (True?)

-- Steve Majewski






More information about the Python-list mailing list