<BODY oncontextmenu="return false" dir=ltr style="OVERFLOW-Y: scroll" leftMargin=0 topMargin=0 rightMargin=0><DIV id=wrteplaceholder style="FONT-FAMILY: Arial" name="wrteplaceholder">
<DIV><BR><BR><!--StartFragment --> I am learning as Python as we speak, to do some text processing stuff.  For instance,<BR>>>> l = [[]]*5<BR>>>> l[0].append("a")<BR>>>> l<BR>[['a'], ['a'], ['a'], ['a'], ['a']]<BR><BR>just bit me; however, thats not the question.  In an effort to avoid another potential mistake, I am wondering if the anonymous file object/class/thingy that I create when I do file("text.txt', "w").write("stuff") gets closed properly on exit or garbage collection or something, or if I always need to hang on to these things and close them myself.<BR><BR>Thanks,<BR>Gerard <BR><BR></DIV></DIV></BODY><hr><div style="background-color:white;color:black;">Walla! Mail - <a href="http://www.walla.com" style="color:blue">get your free 3G mail today</a></div>