Then name it something else. I tend to chose "this" because it is a meaningless name that would not tend to be used for anything else. I would have used "self", except that that tends to be used inside classes. My inspiration for coming up with this is to make modules a little more like classes. I suppose you wouldn't like me to post my own (somewhat buggy) module that allows you to import modules as new type classes?
<br><br><div><span class="gmail_quote">On 4/5/07, <b class="gmail_sendername">Steve Holden</b> <<a href="mailto:steve@holdenweb.com">steve@holdenweb.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Collin Stocks wrote:<br>> As for me, I find this problem annoying, but easy to solve. My solution is:<br>><br>>  >>> this=__import__(__name__)<br>><br>> To  set global variable spam to 4, I say:<br>
><br>>  >>> this.spam=4<br>><br>> This always works, and is much more convenient than:<br>><br>>  >>> global spam<br>>  >>> spam=4<br>><br>> and then worry about local variables also named spam.
<br>><br>That's truly horrible. And what if you have a local variable called "this"?<br><br>regards<br>  Steve<br>--<br>Steve Holden       +44 150 684 7255  +1 800 494 3119<br>Holden Web LLC/Ltd          
<a href="http://www.holdenweb.com">http://www.holdenweb.com</a><br>Skype: holdenweb     <a href="http://del.icio.us/steve.holden">http://del.icio.us/steve.holden</a><br>Recent Ramblings       <a href="http://holdenweb.blogspot.com">
http://holdenweb.blogspot.com</a><br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>