2009/6/22 bluefisher80 <bluefishe...@gmail.com>: > > Actually I think i am just looking for > > print >> myFile.py, myListObj
Well, that syntax is deprecated. And you'd have to create the actual file object. And put it in a variable. So it's more like: f = file("myFile.py", "w") f.write(str(myListObj)) f.close() However, the fact that you want to do this suggests a code smell. Why do you need to do this in the first place? Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list