[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread Carl Witty
On Wed, Feb 4, 2009 at 11:09 AM, Craig Citro wrote: > So this is really nice. It will let us deal with moving classes around > within sage -- we simply add a find_global function which can do basic > remappings in cases where things move. We should definitely add our > own find_global somewhere,

[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread daveloeffler
On Feb 4, 6:34 pm, Craig Citro wrote: > > Go for it, but please don't break pickling.    If older congruence subgroups > > don't unpickle, then e.g., all the data here will be broken: > > >http://sage.math.washington.edu/home/wstein/db/modsym/ > > In particular, I just went to some work to fix th

[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread Craig Citro
> There's another option. Consider this paragraph from the Python > library reference: > > = > Things are a little cleaner with cPickle, but not by much. To control > what gets unpickled, you can set the unpickler's find_global attribute > to a function or None. If it is None then any attempt

[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread Carl Witty
On Wed, Feb 4, 2009 at 10:34 AM, Craig Citro wrote: > Make sure you're working from an alpha that has this patch merged, at > least. In particular, knowing how those pickles are built, moving > files into a subdirectory will probably re-break those pickles, unless > we do something to prevent it.

[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread Craig Citro
> Go for it, but please don't break pickling.If older congruence subgroups > don't unpickle, then e.g., all the data here will be broken: > > http://sage.math.washington.edu/home/wstein/db/modsym/ > In particular, I just went to some work to fix the unpickling of these objects: http://trac.s

[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread William Stein
On Wed, Feb 4, 2009 at 7:52 AM, Nick Alexander wrote: > > > On 4-Feb-09, at 6:06 AM, daveloeffler wrote: > >> >> I've been doing some tinkering with the congruence subgroups code >> (because I'm lecturing a course on modular forms, and I think it's a >> nice idea that Sage should be able to do al

[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread Nick Alexander
On 4-Feb-09, at 6:06 AM, daveloeffler wrote: > > I've been doing some tinkering with the congruence subgroups code > (because I'm lecturing a course on modular forms, and I think it's a > nice idea that Sage should be able to do all the questions on my > problem sheets). As part of this, I'd lik

[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread daveloeffler
OK, that works now. Thanks to both of you for your help. David On Feb 4, 2:15 pm, mabshoff wrote: > On Feb 4, 6:06 am, daveloeffler wrote: > > Hi David, > > > I've been doing some tinkering with the congruence subgroups code > > (because I'm lecturing a course on modular forms, and I think it'

[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread mabshoff
On Feb 4, 6:06 am, daveloeffler wrote: Hi David, > I've been doing some tinkering with the congruence subgroups code > (because I'm lecturing a course on modular forms, and I think it's a > nice idea that Sage should be able to do all the questions on my > problem sheets). I think we agree t

[sage-devel] Re: sage -b and directory structure

2009-02-04 Thread William Stein
On Wed, Feb 4, 2009 at 6:06 AM, daveloeffler wrote: > > I've been doing some tinkering with the congruence subgroups code > (because I'm lecturing a course on modular forms, and I think it's a > nice idea that Sage should be able to do all the questions on my > problem sheets). As part of this, I