Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Nils Bruin
On Friday, April 7, 2017 at 11:14:01 AM UTC-7, Jeroen Demeyer wrote: > > On 2017-04-07 19:23, Nils Bruin wrote: > > Importing > > infrastructure has changed significantly between Py2 and Py3\ > > Really? What has changed? > > I was mainly looking at https://docs.python.org/2/reference/simple_s

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Jeroen Demeyer
On 2017-04-07 19:23, Nils Bruin wrote: Importing infrastructure has changed significantly between Py2 and Py3\ Really? What has changed? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails fr

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Kwankyu Lee
On Friday, April 7, 2017 at 7:23:59 PM UTC+2, Kwankyu Lee wrote: > > On Friday, April 7, 2017 at 6:18:47 PM UTC+2, Travis Scrimshaw wrote: >> >> From a user point of view, they are already imported so you shouldn't >> have to do anything. >> > > A user of Sage also writes scripts where he or she

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Kwankyu Lee
On Friday, April 7, 2017 at 6:18:47 PM UTC+2, Travis Scrimshaw wrote: > > From a user point of view, they are already imported so you shouldn't have > to do anything. > A user of Sage also writes scripts where he or she often imports lcm or gcd. I also prefer the specific module in general, bu

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Nils Bruin
On Friday, April 7, 2017 at 9:18:47 AM UTC-7, Travis Scrimshaw wrote: > > You're welcome, with a very special thanks to Jeroen for his help. > > From a user point of view, they are already imported so you shouldn't have > to do anything. However, I am split on doing imports from all or the > spec

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Travis Scrimshaw
You're welcome, with a very special thanks to Jeroen for his help. >From a user point of view, they are already imported so you shouldn't have to do anything. However, I am split on doing imports from all or the specific module, but I defer to the latter because it could potentially not trigger

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Kwankyu Lee
Done. https://trac.sagemath.org/ticket/22774 -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Vincent Delecroix
On 07/04/2017 10:13, Kwankyu Lee wrote: On Friday, April 7, 2017 at 10:08:23 AM UTC+2, vdelecroix wrote: From the user point of view, everything should be imported as from sage.arith.all import gcd, lcm I agree. So the warning message should guide a user to import lcm from sage.arith.al

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Kwankyu Lee
On Friday, April 7, 2017 at 10:08:23 AM UTC+2, vdelecroix wrote: > > From the user point of view, everything should be > imported as > > from sage.arith.all import gcd, lcm > I agree. So the warning message should guide a user to import lcm from sage.arith.all. -- You received this message

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Vincent Delecroix
No you are not. From the user point of view, everything should be imported as from sage.arith.all import gcd, lcm Vincent On 07/04/2017 10:06, Vincent Delecroix wrote: Hello, You are perfectly right. Can you open a ticket on trac? Vincent On 07/04/2017 09:46, Kwankyu Lee wrote: Hi, As of

Re: [sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Vincent Delecroix
Hello, You are perfectly right. Can you open a ticket on trac? Vincent On 07/04/2017 09:46, Kwankyu Lee wrote: Hi, As of Sage 8.0.beta, the location of lcm has changed from "sage.arith.misc" to "sage.arith.functions", and the deprecation warning warns that I should import lcm directly from "s

[sage-devel] As of Sage 8.0, lcm is from sage.arith.functions but gcd is not

2017-04-07 Thread Kwankyu Lee
Hi, As of Sage 8.0.beta, the location of lcm has changed from "sage.arith.misc" to "sage.arith.functions", and the deprecation warning warns that I should import lcm directly from "sage.arith.functions". But the close friend gcd is still in "sage.arith.misc" and an ordinary user like me would