[sage-devel] Re: Error in installation of latte_int [Sage 8.4, MacOS 10.14.5, Xcode 10.2.1]

2019-06-27 Thread Marco Castronovo
Thank you! I upgraded to Sage 8.6, relaunched "sage -i latte_int" and it correctly installed latte_int-1.7.5. Marco On Wednesday, June 26, 2019 at 7:19:18 PM UTC-4, Matthias Koeppe wrote: > > This is fixed in more recent versions of Sage, which include LattE 1.7.5. > https://trac.sagemath.org/t

[sage-devel] Re: A question on pickling cached methods

2019-06-27 Thread Kwankyu Lee
> > From the code, I learned that there is "do_pickle" option. With > "do_pickle=True", the content of the cached method is indeed preserved with > an experimental class. I will check again with my production code. > I applied "do_pickle=True" option to F.weierstrass_points() with global funct

[sage-devel] Re: A question on pickling cached methods

2019-06-27 Thread Kwankyu Lee
On Thursday, June 27, 2019 at 10:20:55 PM UTC+9, Volker Braun wrote: > > There is the do_pickle argument, e.g. from TFM: > > sage: class C: > : @cached_method(do_pickle=True) > : def __hash__(self): > : return id(self) > > > Note that it can cause the following problem

[sage-devel] Re: A question on pickling cached methods

2019-06-27 Thread Kwankyu Lee
On Thursday, June 27, 2019 at 9:45:42 PM UTC+9, Simon King wrote: > > Hi! > > Is it a Python object? > Yes. > A cached method (if that hasn't changed since I last looked at the code) > stores the cached values in some dict stored as an attribute, and when > you pickle the object (at least

[sage-devel] Re: A question on pickling cached methods

2019-06-27 Thread Volker Braun
There is the do_pickle argument, e.g. from TFM: sage: class C: : @cached_method(do_pickle=True) : def __hash__(self): : return id(self) Note that it can cause the following problem: Not every circularly dependent collection of cython objects can be pickled. Cached va

[sage-devel] Re: A question on pickling cached methods

2019-06-27 Thread Simon King
Hi! Is it a Python object? A cached method (if that hasn't changed since I last looked at the code) stores the cached values in some dict stored as an attribute, and when you pickle the object (at least when no __reduce__ method interferes), it should automatically store that attribute. But you

[sage-devel] Laurent polynomial rings over arbitrary base rings

2019-06-27 Thread Bernhard Reinke
Hi, as mentioned in this comment , Laurent polynomial rings can be only formed over integral domains. Are there plans to lift this restriction in the future? I cannot find the ticket that fwclarke meant to post about it. Best. Bernhard -- You

Re: [sage-devel] A question on pickling cached methods

2019-06-27 Thread Kwankyu Lee
On Thursday, June 27, 2019 at 4:41:30 PM UTC+9, John Cremona wrote: > > I think this is one disadvantage of using the cached_method decorator, > instead of the clumsier way of actually storing the result in the object, > eg. by setting X._genus. In your example I cannot think of a reason why w

Re: [sage-devel] A question on pickling cached methods

2019-06-27 Thread John Cremona
I think this is one disadvantage of using the cached_method decorator, instead of the clumsier way of actually storing the result in the object, eg. by setting X._genus. In your example I cannot think of a reason why we would not want to store the genus as an attribute after computing it. John O