Re: [sage-devel] Bad interaction between differents types of integers in sage?

2012-06-23 Thread Benjamin Jones
On Sat, Jun 23, 2012 at 3:34 PM, Julien Puydt wrote: > Hi, > > wouldn't the following be a bug? > > sage: E=ModularForms(1,12).cuspidal_subspace() > sage: f=E.0 > sage: dim=len([1,2,4,8,16]) > sage: dim > 5 > sage: f.coefficients(5) > [1, -24, 252, -1472, 4830] > sage: f.coefficients(dim) > --

[sage-devel] Re: Bad interaction between differents types of integers in sage?

2012-06-23 Thread Volker Braun
We can't make python functions return Sage integers. f.coefficients() should do "isinstance(X, (int, rings.Integer))" instead of just checking for Sage integers. On Saturday, June 23, 2012 9:34:13 PM UTC+1, Snark wrote: > > Hi, > > wouldn't the following be a bug? > > sage: E=ModularForms(1,

[sage-devel] Bad interaction between differents types of integers in sage?

2012-06-23 Thread Julien Puydt
Hi, wouldn't the following be a bug? sage: E=ModularForms(1,12).cuspidal_subspace() sage: f=E.0 sage: dim=len([1,2,4,8,16]) sage: dim 5 sage: f.coefficients(5) [1, -24, 252, -1472, 4830] sage: f.coefficients(dim) --- TypeErr

Re: [sage-devel] *.sagenb.org on SSD

2012-06-23 Thread David Kirkby
On 22 June 2012 19:04, Jason Grout wrote: > William installed new SSD disks and we migrated *.sagenb.org over to them. We also migrated aleph.sagemath.org to the SSD. > > It seems like everything is faster (way faster :).  If you notice any > problems, let us know. > > Thanks, > > Jason I hope th

Re: [sage-devel] Re: Detecting inheritance problems ?

2012-06-23 Thread Volker Braun
Ah thanks, got confused with polynomial ring over Z/2 again. On Saturday, June 23, 2012 2:00:59 PM UTC+1, Martin Albrecht wrote: > > The Boolean polynomial ring includes x_i^2 - x_i implicitly in any ideal, > hence any ideal is of dimension 0. > -- To post to this group, send an email to sage-

Re: [sage-devel] Re: Detecting inheritance problems ?

2012-06-23 Thread Martin Albrecht
The Boolean polynomial ring includes x_i^2 - x_i implicitly in any ideal, hence any ideal is of dimension 0. On Saturday 23 Jun 2012, Volker Braun wrote: > On Saturday, June 23, 2012 1:06:21 PM UTC+1, bouillaguet wrote: > > To actually fix these problems, we need to write specialized versions > >

[sage-devel] Re: Detecting inheritance problems ?

2012-06-23 Thread Volker Braun
On Saturday, June 23, 2012 1:06:21 PM UTC+1, bouillaguet wrote: > > To actually fix these problems, we need to write specialized versions > of the generic functions (e.g.BooleanPolynomialIdeal.dimension() > should always return 0) Why should it always return 0? You can have any non-negative (Kr

[sage-devel] Detecting inheritance problems ?

2012-06-23 Thread charles Bouillaguet
Hi all, I am currently working with the polybori interface in sage, and I already filled several tickets that all have the same origin. The class BooleanPolynomial (resp. BooleanPolynomialIdeal) inherits MPolynomial (resp. MPolynomialIdeal) and redefines some of the methods. The problem is that s