Re: [sage-devel] Re: problem installing 4ti2 spkg

2011-09-11 Thread John H Palmieri
On Sunday, September 11, 2011 8:13:53 PM UTC-7, William wrote: > > On Sun, Sep 11, 2011 at 11:17 AM, John H Palmieri > wrote: > > When I log in to sage.math, I see the file > > > > /home/sagemath/www/packages/experimental/4ti2-20061025.spkg > > > > which is the wrong version. The other approp

Re: [sage-devel] Re: problem installing 4ti2 spkg

2011-09-11 Thread William Stein
On Sun, Sep 11, 2011 at 11:17 AM, John H Palmieri wrote: > When I log in to sage.math, I see the file > >   /home/sagemath/www/packages/experimental/4ti2-20061025.spkg > > which is the wrong version.  The other appropriate directories in > /home/sagemath/ contain the correct version of this spkg. 

[sage-devel] Re: small problem with polyhedra.py

2011-09-11 Thread mhampton
I think your suggestion makes sense at least in the short term. I admit my own frustration with the current plotting code means I tend to write my own functions to extract and plot the vertices, edges, and faces so I've been lazy about fixing things. -Marshall On Sep 10, 5:49 pm, davidp wrote:

[sage-devel] Re: problem installing 4ti2 spkg

2011-09-11 Thread mhampton
It would be nice if someone could review http://trac.sagemath.org/sage_trac/ticket/8217 since that package version (at http://sage.math.washington.edu/home/mhampton/4ti2-1.3.2.p1.spkg) is more up to date. -Marshall Hampton On Sep 11, 1:17 pm, John H Palmieri wrote: > When I log in to sage.mat

[sage-devel] Re: Pickling of classes with metaclasses

2011-09-11 Thread Simon King
Hi! For the record: If the metaclass M of a new class C is dynamically created, for example from the metaclasses of the bases of C, then pickling of C indeed works after registering copy_reg.pickle(M, M.__reduce__). Remark: I found some comments stating that the current use of metaclasses in Sag

[sage-devel] Re: Pickling of classes with metaclasses

2011-09-11 Thread Simon King
PS: On 11 Sep., 23:01, Simon King wrote: > So, perhaps that is the solution! No, it didn't work. It is the same error. as before. But is it perhaps required that in copy_reg.pickle(metacls, meth), metacls is the exact metaclass of the class to be pickled? In my case, I want to pickle the class

[sage-devel] Re: Pickling of classes with metaclasses

2011-09-11 Thread Simon King
Hi Florent, On 11 Sep., 22:26, Florent Hivert wrote: > I'm not quite sure what's happening but at the end of > the file there is a > > # This registers the appropriate reduction methods (depends on #5985) > import copy_reg > copy_reg.pickle(DynamicMetaclass, DynamicMetaclass.__reduce__) > > impor

Re: [sage-devel] Re: Pickling of classes with metaclasses

2011-09-11 Thread Florent Hivert
Hi Simon, You probably want to have a look at sage/structure/dynamic_class.py which is the file solving those kinds of problems for dynamic classes created by the category system. I'm not quite sure what's happening but at the end of the file there is a # This registers the appropriate redu

[sage-devel] Re: Pickling of classes with metaclasses

2011-09-11 Thread Simon King
Hi Maarten, On 11 Sep., 21:12, Maarten Derickx wrote: > can you check wether type(MyPolyRing).__reduce__() is actually called? It isn't. I am currently trying to understand the "pickle" module. I already found that it there is a special case when type(obj) is a subclass of types.TypeType. That i

[sage-devel] Re: Pickling of classes with metaclasses

2011-09-11 Thread Maarten Derickx
Hmm the only thing I can think of is that .__reduce__ is never called because your metaclass (i.e. type(MyPolyRing)) is a subclass of a class wich implements .__reduce_ex__ can you check wether type(MyPolyRing).__reduce__() is actually called? -- To post to this group, send an email to sage-de

[sage-devel] Re: Customizing hash for an instance of ?

2011-09-11 Thread Maarten Derickx
I've found the python documentation on this exact behaviour of hash and other special methods by accident (I was looking for something else in the python docs). For a total understanding read 3.4.11 and 3.4.12 of http://docs.python.org/reference/datamodel.html#special-method-lookup-for-old-styl

[sage-devel] Re: problem installing 4ti2 spkg

2011-09-11 Thread John H Palmieri
When I log in to sage.math, I see the file /home/sagemath/www/packages/experimental/4ti2-20061025.spkg which is the wrong version. The other appropriate directories in /home/sagemath/ contain the correct version of this spkg. Do we just need to replace this file with the correct one? -- J

[sage-devel] Pickling of classes with metaclasses

2011-09-11 Thread Simon King
Hi! I'd apreciate help with implementing pickling of classes with metaclasses. I have a class MyPolyRing, such that type(MyPolyRing) is some metaclass that defines a __reduce__ method for MyPolyRing. I thought that, generally, pickling should work for any object O (where O might be a class) such

[sage-devel] Re: porting sage to OS X 10.7

2011-09-11 Thread William Stein
On Sun, Sep 11, 2011 at 10:05 AM, R. Andrew Ohana wrote: > I'm not in Seattle currently, so I can't until probably Wednesday. Is there > anyone else who has access to the hardware? No worries. Incidentally, my main laptop is now upgraded to 10.7! > > -- > Andrew > > On Sep 11, 2011 12:21 AM, "W

[sage-devel] Re: porting sage to OS X 10.7

2011-09-11 Thread R. Andrew Ohana
I'm not in Seattle currently, so I can't until probably Wednesday. Is there anyone else who has access to the hardware? -- Andrew On Sep 11, 2011 12:21 AM, "William Stein" wrote: > On Saturday, September 10, 2011, Dima Pasechnik wrote: >> is sqrt5.cs.washington.edu down? > > > Yes. Andrew, can y

Re: [sage-devel] Testing on Solaris?

2011-09-11 Thread William Stein
On Sun, Sep 11, 2011 at 8:45 AM, daveloeffler wrote: > Is there a Solaris box currently available which Sage developers can > use for testing their code? There are two Solaris Sparc SunOS boxes working on skynet. There was an intel Solaris box, but it broke during a power failure. > At one poi

[sage-devel] problem installing 4ti2 spkg

2011-09-11 Thread davidp
The command 'sage -i 4ti2' gives "/usr/local/sage-4.7.1/local/bin/sage-spkg: file 4ti2 does not exist Attempting to download it. Searching for latest version of 4ti2 Found package 4ti2-20061025 ..." and subsequently crashes (never having installed 4ti2). The version of 4ti2 listed at http://sage

[sage-devel] Testing on Solaris?

2011-09-11 Thread daveloeffler
Is there a Solaris box currently available which Sage developers can use for testing their code? At one point t2.math.washington.edu was in use for this, but it seems to have been unavailable for some while. I ask because of patch #10335, which had a positive review some while back, but which turn

Re: [sage-devel] status on lion and xcode 4

2011-09-11 Thread William Stein
On Sunday, September 11, 2011, William Stein wrote: > On Sun, Sep 11, 2011 at 12:39 AM, Maarten Derickx > wrote: >> It's good that you are willing to help! Mike Hansen did the most (if not all) work of porting. You should ask him to add the changes he made to a trac ticket so you can start where

Re: [sage-devel] Re: status on lion and xcode 4

2011-09-11 Thread William Stein
On Sun, Sep 11, 2011 at 12:39 AM, Maarten Derickx wrote: > It's good that you are willing to help! Mike Hansen did the most (if not all) > work of porting. You should ask him to add the changes he made to a trac > ticket so you can start where he left off. From the previous posts it seems > tha

[sage-devel] Re: status on lion and xcode 4

2011-09-11 Thread Maarten Derickx
It's good that you are willing to help! Mike Hansen did the most (if not all) work of porting. You should ask him to add the changes he made to a trac ticket so you can start where he left off. From the previous posts it seems that this means you have to update the ecl and maxima SPKG to a newer

[sage-devel] Re: porting sage to OS X 10.7

2011-09-11 Thread William Stein
On Saturday, September 10, 2011, Dima Pasechnik wrote: > is sqrt5.cs.washington.edu down? Yes. Andrew, can you fix it? > -- > 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 < sage-dev