On Mon, Oct 12, 2009 at 6:52 AM, Marshall Hampton <hampto...@gmail.com> wrote:
>
> Its a little thing, but I noticed that the DATA directory is missing
> its last '/', which is present in previous notebook versions.  I like
> having a trailing '/' present in a directory string, so this seems
> like a regression.  Haven't noticed anything else yet.

It was a design decision, but I'm willing to change it.  I've made the
code in the notebook cross-platform as much as possible, since next I
want to port it to work under Windows.   So I make the DATA directory
name using "os.path.join", which doesn't put a trailing slash in.  One
should write code using os.path.join too, which means you shouldn't
depend on a slash being forward -- it might be backwards (on windows
it is).

I could make DATA be of the form:  DATA = ...' + os.path.sep
which on UNIX would still have / at the end and on Windows would end in \.
Should I do that?

William

>
> -Marshall
>
> On Oct 12, 12:03 am, William Stein <wst...@gmail.com> wrote:
>> Hi,
>>
>> Nearly two weeks ago I had the notebook stabilized and all known new
>> bugs fixed (after separating it off from sage as a separate program
>> and rewriting the expect stuff).  But I realized that it would be a
>> total nightmare to introduce yet another sobj ("sage object") storage
>> format, which would make refactoring code extremely painful, and just
>> have to be changed again.    So, I created an "abstract storage layer"
>> and implemented an storage system for *everything* in the Sage
>> notebook which doesn't use any special Sage-related pickles.  Some
>> data is stored as pickled basic Python objects that can be read from
>> any version of Python with or without Sage installed, but that is it.
>>   Rewriting the notebook to use an abstract storage layer is the sort
>> of thing that at first seems like it will take a day, but then takes
>> more than a week.  Anyway, I did it.    However, it's hard to imagine
>> that I didn't introduce numerous new bugs in the process, though I do
>> not know of any bugs at all.
>>
>> So, I did an automatic migration ofhttp://demo.sagenb.orgto the new
>> notebook and put that athttp://uw.sagenb.org/.   I hope people will
>> testhttp://uw.sagenb.org/! Please try it.  Report any bugs at all
>> that you find.  Note that I've changed the icon in the upper left
>> corner to a new "sage notebook" icon that Harald Schilly designed, and
>> there are a few other small tweaks interface tweaks that people have
>> requested.
>>
>> William
>>
>> --
>> William Stein
>> Associate Professor of Mathematics
>> University of Washingtonhttp://wstein.org
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to