[sage-devel] Re: Weird ImportError with six

2016-05-30 Thread Volker Braun
This imports src/sage/misc/six.py The best fix is probably from __future__ import absolute_import to get the saner py3 behavior. On Tuesday, May 31, 2016 at 7:55:14 AM UTC+2, Andrey Novoseltsev wrote: > > Hello, > > Can anybody explain (even better - fix ;-)) what is going on with this > er

[sage-devel] Re: Weird ImportError with six

2016-05-30 Thread Frédéric Chapoton
It's because these is a "six" module in sage/misc. I met this problem in #20694 Solution: use from __future__ import absolute import Frederic Le mardi 31 mai 2016 07:55:14 UTC+2, Andrey Novoseltsev a écrit : > > Hello, > > Can anybody explain (even better - fix ;-)) what is going on with this

[sage-devel] Weird ImportError with six

2016-05-30 Thread Andrey Novoseltsev
Hello, Can anybody explain (even better - fix ;-)) what is going on with this error with 7.2 and 7.3.beta0: sage: from sage.misc.remote_file import get_remote_file sage: get_remote_file('http://193.146.36.205:8080/GgbSageDirect/DiscoverGGB/DiscoverGGBAux/2015_11_24_fromGgbXMLString2Cons.sage')

[sage-devel] Re: Faulty comparison between elements of quotient of multivariate polynomial ring

2016-05-30 Thread Nils Bruin
On Monday, May 30, 2016 at 9:55:16 AM UTC-7, Alec Edgington wrote: > > On Monday, 30 May 2016 17:19:54 UTC+1, Nils Bruin wrote: >> >> Currently, u.__cmp__ uses the former to test equality, and it should >> probably use the latter. The reasoning is argued in the code. It looks like >> univariate p

Re: [sage-devel] Re: Opinions on mostly superfluous refactoring

2016-05-30 Thread Erik Bray
On Mon, May 30, 2016 at 6:50 PM, William Stein wrote: > On Mon, May 30, 2016 at 9:47 AM, Jori Mäntysalo wrote: >> On Mon, 30 May 2016, Erik Bray wrote: >> Imho many sage modules have grown too long, including but not limited to some 20kloc monsters. +1 to splitting things up! >>> >>> >>

[sage-devel] Re: Faulty comparison between elements of quotient of multivariate polynomial ring

2016-05-30 Thread Alec Edgington
On Monday, 30 May 2016 17:19:54 UTC+1, Nils Bruin wrote: > > Currently, u.__cmp__ uses the former to test equality, and it should > probably use the latter. The reasoning is argued in the code. It looks like > univariate polynomial ideals should just get a containment test implemented > Thanks,

Re: [sage-devel] Re: Opinions on mostly superfluous refactoring

2016-05-30 Thread William Stein
On Mon, May 30, 2016 at 9:47 AM, Jori Mäntysalo wrote: > On Mon, 30 May 2016, Erik Bray wrote: > >>> Imho many sage modules have grown too long, including but not limited to >>> some 20kloc monsters. +1 to splitting things up! >> >> >> Yikes! I'm not sure I've even run into any of those yet. 20k

Re: [sage-devel] Re: Opinions on mostly superfluous refactoring

2016-05-30 Thread Jori Mäntysalo
On Mon, 30 May 2016, Erik Bray wrote: Imho many sage modules have grown too long, including but not limited to some 20kloc monsters. +1 to splitting things up! Yikes! I'm not sure I've even run into any of those yet. 20kloc is definitely worth splitting up. ~4k is a lot more arguable I thin

Re: [sage-devel] Opinions on mostly superfluous refactoring

2016-05-30 Thread Erik Bray
On Mon, May 30, 2016 at 6:42 PM, William Stein wrote: > On Mon, May 30, 2016 at 9:22 AM, Erik Bray wrote: >> Hi all, >> >> I recently needed to dive into the sage_setup.autogen.interpreters >> module in order to make some small changes. > > Quick link: > > https://github.com/sagemath/sage/blob

Re: [sage-devel] Opinions on mostly superfluous refactoring

2016-05-30 Thread William Stein
On Mon, May 30, 2016 at 9:22 AM, Erik Bray wrote: > Hi all, > > I recently needed to dive into the sage_setup.autogen.interpreters > module in order to make some small changes. Quick link: https://github.com/sagemath/sage/blob/master/src/sage_setup/autogen/interpreters.py It's the fast_callab

[sage-devel] Re: Faulty comparison between elements of quotient of multivariate polynomial ring

2016-05-30 Thread Dima Pasechnik
On Monday, May 30, 2016 at 5:19:54 PM UTC+1, Nils Bruin wrote: > > On Monday, May 30, 2016 at 8:56:19 AM UTC-7, Alec Edgington wrote: >> >> >> >> It seems that there is a problem with the internal representations and in >> some cases equality is not being ascertained correctly. >> >> The problem s

Re: [sage-devel] Re: Opinions on mostly superfluous refactoring

2016-05-30 Thread Erik Bray
On Mon, May 30, 2016 at 6:29 PM, Volker Braun wrote: > Imho many sage modules have grown too long, including but not limited to > some 20kloc monsters. +1 to splitting things up! Yikes! I'm not sure I've even run into any of those yet. 20kloc is definitely worth splitting up. ~4k is a lot more

[sage-devel] Re: Opinions on mostly superfluous refactoring

2016-05-30 Thread Volker Braun
Imho many sage modules have grown too long, including but not limited to some 20kloc monsters. +1 to splitting things up! On Monday, May 30, 2016 at 6:22:53 PM UTC+2, Erik Bray wrote: > > Hi all, > > I recently needed to dive into the sage_setup.autogen.interpreters > module in order to make

[sage-devel] Opinions on mostly superfluous refactoring

2016-05-30 Thread Erik Bray
Hi all, I recently needed to dive into the sage_setup.autogen.interpreters module in order to make some small changes. The file is over 4000 lines long, which is a bit on the long side for your typical Python file, though not egregious by any means. That said, when trying to understand some rela

[sage-devel] Re: Faulty comparison between elements of quotient of multivariate polynomial ring

2016-05-30 Thread Nils Bruin
On Monday, May 30, 2016 at 8:56:19 AM UTC-7, Alec Edgington wrote: > > > > It seems that there is a problem with the internal representations and in > some cases equality is not being ascertained correctly. > > The problem seems to be this: sage: u=c*(d+e) sage: v=c*d+c*e sage: I.reduce(u.lift())

[sage-devel] 3 graphics

2016-05-30 Thread André Rodrigues
Hello! I use the sage for virtualbox on windows when plot 3d graphics and I right-click other options except the console and java script does not work. How to fix this? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this gro

[sage-devel] 3d graphics

2016-05-30 Thread André Rodrigues
Hello! I use the sage for virtualbox on windows when plot 3d graphics and I right-click other options except the console and java script does not work. How to fix this? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this gro

[sage-devel] Faulty comparison between elements of quotient of multivariate polynomial ring

2016-05-30 Thread Alec Edgington
Hello, I've found an problem with comparison of elements in certain rings. Here is a piece of Sage to illustrate the issue: sage: R = PolynomialRing(GF(4), ('x', 'y')) sage: x, y = R.gens() sage: I = R.ideal([x^2 + y^2, x + y^3]) sage: S = R.quotient(I, 'ab') sage: a, b = S.gens() sage: c, d, e

Re: [sage-devel] Renaming generic curve classes

2016-05-30 Thread Nils Bruin
On Monday, May 30, 2016 at 6:02:27 AM UTC-7, Volker Braun wrote: > > > They are different implementations and not injected in the global > namespace. The global namespace only has factory functions that instantiate > these classes. As such they are implementation details and subject to > change

Re: [sage-devel] Re: weird output: show of FiniteField

2016-05-30 Thread Volker Braun
Ah forgot about the existing ticket... On Monday, May 30, 2016 at 3:57:42 PM UTC+2, Daniel Krenn wrote: > > Why was > On 2016-05-30 15:51, Volker Braun wrote: > > This is now http://trac.sagemath.org/ticket/20711 > > created and code not attached to the existing > > > On Sunday, May 22, 2016 a

Re: [sage-devel] Re: weird output: show of FiniteField

2016-05-30 Thread Daniel Krenn
Why was On 2016-05-30 15:51, Volker Braun wrote: > This is now http://trac.sagemath.org/ticket/20711 created and code not attached to the existing > On Sunday, May 22, 2016 at 11:47:50 AM UTC+2, Daniel Krenn wrote: > This is ticket http://trac.sagemath.org/ticket/20652 >

[sage-devel] Re: weird output: show of FiniteField

2016-05-30 Thread Volker Braun
This is now http://trac.sagemath.org/ticket/20711 On Sunday, May 22, 2016 at 11:47:50 AM UTC+2, Daniel Krenn wrote: > > We have > > sage: show(FiniteField(2)) > \newcommand{\Bold}[1]{\mathbf{#1}}0 1 > > which is the list of elements and not $F_2$ (what I would expect). > > However, the LaTeX-r

Re: [sage-devel] Renaming generic curve classes

2016-05-30 Thread Volker Braun
On Monday, May 30, 2016 at 8:46:37 AM UTC+2, Johan S. R. Nielsen wrote: > > I'm a bit surprised at the naming scheme "_generic", etc. in the first > place. They are different implementations and not injected in the global namespace. The global namespace only has factory functions that instantia

Re: [sage-devel] Re: Copyrights

2016-05-30 Thread Erik Bray
On Fri, May 27, 2016 at 7:30 PM, rjf wrote: > The point is, if you don't claim authorship, someone else might, and (for > example) > restrict access, even by you. > > So you should claim authorship and copyright, and then declare that others > may > use it under whatever restrictions you determine