<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:12pt"><br><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">&gt; &gt; I don't know of a way to open a closed file object, you might want<br>&gt; &gt; to store the filename along with the file. Then if you discover it is<br>&gt; &gt; closed you can use the name to reopen it.<br>&gt;<br>&gt;You could probably just open it again, with:<br>&gt;<br>&gt; f = open(f.name, f.mode)<br><br>Ah, good point. I had forgotten that the file object had a name <br>attribute so yes that should work.<br><br>Although personally I'd probably go with the custom fileobject <br>approach just for the improved readability.<br><br>Alan G.<br><br></div></div>
<!-- cg1.c241.mail.ird.yahoo.com compressed/chunked Fri Dec 25 06:03:23 PST 2009 -->
</div></body></html>