In addition, every load must fail gracefully if you want your software to work. Anything that can throw exceptions (like loading files or unpickling) must be in a try/except block. Ideally you add the try/except when you write the method the first time, not some time later after it caused a problem.
On Wednesday, November 5, 2014 3:59:59 PM UTC, Jeroen Demeyer wrote: > > To avoid corruption, it would be a *very good idea* to use > atomic_write() from src/sage/misc/temporary_file.py for this. > > I guess that users.pickle is a very important file for the functioning > of the Notebook and it's scary to know that it's written in such an > unsafe way. > -- You received this message because you are subscribed to the Google Groups "sage-support" 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-support. For more options, visit https://groups.google.com/d/optout.
