I am learning as Python as we speak, to do some text processing stuff. For instance, >>> l = [[]]*5 >>> l[0].append("a") >>> l [['a'], ['a'], ['a'], ['a'], ['a']] 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. Thanks, Gerard Walla! Mail - get your free 3G mail today |