#15515: Change graphics_filename() to return a tmp_filename() except from the
notebook
----------------------------------+------------------------
       Reporter:  jdemeyer        |        Owner:
           Type:  enhancement     |       Status:  new
       Priority:  minor           |    Milestone:  sage-6.1
      Component:  misc            |   Resolution:
       Keywords:                  |    Merged in:
        Authors:  Jeroen Demeyer  |    Reviewers:
Report Upstream:  N/A             |  Work issues:
         Branch:                  |       Commit:
   Dependencies:                  |     Stopgaps:
----------------------------------+------------------------
Description changed by jdemeyer:

Old description:

> The function `graphics_filename()` in `sage/misc/temporary_file.py` was
> mainly created for the notebook. When used in other places, it is unsafe
> (race condition + creates predicatable filenames) and can clutter the
> current working directory with files.

New description:

 The function `graphics_filename()` in `sage/misc/temporary_file.py` was
 created for the notebook. When used in other places, it is unsafe (race
 condition + creates predicatable filenames) and can clutter the current
 working directory with files. Therefore, we should use `tmp_filename()` in
 `graphics_filename()` except when `EMBEDDED_MODE` is `True`. This also
 simplifies the logic in various `show()` methods.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/15515#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to