#8156: [with code] new function readdata
------------------------------------------+---------------------------------
   Reporter:  zimmerma                    |       Owner:  was       
       Type:  enhancement                 |      Status:  needs_info
   Priority:  minor                       |   Milestone:  sage-4.5.2
  Component:  interfaces                  |    Keywords:            
     Author:  Paul Zimmermann             |    Upstream:  N/A       
   Reviewer:  Tim Dumol, John H Palmieri  |      Merged:            
Work_issues:                              |  
------------------------------------------+---------------------------------

Comment(by mvngu):

 Replying to [comment:18 mpatel]:
 > I think it's OK if we don't delete the file explicitly.

 It saves a lot of headache for a program to clean up after itself. This
 happens when you exit a Sage session; temporary files/directories created
 under `SAGE_TMP` would automatically be deleted when Sage exits. So
 there's no need to explicitly delete stuff under `SAGE_TMP`.
 [[BR]][[BR]]

 > But maybe it's better to use `tmp_filename`, which increments an
 internal counter and checks whether the file already exists?

 That's a very neat idea, especially considering that a lot of doctests do
 create temporary files. It's very easy to have name clashes when you
 doctest in parallel. Another useful command is `tmp_dir()` for creating a
 temporary directory. Both `tmp_filename()` and `tmp_dir()` are highly
 recommended for use in doctests.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8156#comment:19>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to