On 23 Sep., 21:11, Simon King <simon.k...@nuigalway.ie> wrote: > ... > I would expect that F.close() waits until the file F really is closed, > but perhaps I am mistaken? > > Anyway, it does occasionally happen to me (but it is hardly > reproducible) that the temporary file is mutilated when > self._eval_line(self._read_in_file_command(tmp_to_use), > allow_use_file=False) is executed. Is there a way to test whether the > creation of the file succeeded (and wait if it isn't done yet), before > trying to read it?
Would it make sense to call os.fsync(F) after F.close()? Cheers, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org