Running code on module import

Troy Melhase troy at gci.net
Sat May 22 04:46:41 EDT 2004


On Saturday 22 May 2004 12:13 am, Grant D. Watson wrote:
> Am I attempting the impossible, here?  Will recursive imports burn me?

Recursive imports won't bury you, but the next maintenance programmer might 
for modifying the behavior of the import statement beyond it's original 
intent.

And you just never know:  that maintenance programmer might be you!

-- 
Troy Melhase, troy at gci.net
--
The riddles of God are more satisfying than the solutions of man. - G. K. 
Chesterton





More information about the Python-list mailing list