Re: [sage-devel] Re: CachedInParentMethod clear cache

2019-01-08 Thread VulK
I was being stupid and pretended to clear the cache by hand *facepalm*. I can confirm that doing things properly everything works as expected. Sorry about the noise S. * Nils Bruin [2019-01-08 08:47:54]: On Tuesday, January 8, 2019 at 6:21:39 AM UTC-8, Salvatore Stella wrote: Dear all, sorr

Re: [sage-devel] Re: CachedInParentMethod clear cache

2019-01-08 Thread Nils Bruin
On Tuesday, January 8, 2019 at 6:21:39 AM UTC-8, Salvatore Stella wrote: > > Dear all, > sorry for disappearing on this. I am a little confused: if both parent and > element refer to the same cache how is it possible that clearing one does > not > clear the other? > S. > > If you have D={1:1}

Re: [sage-devel] Re: CachedInParentMethod clear cache

2019-01-08 Thread E. Madison Bray
On Tue, Jan 8, 2019 at 3:21 PM VulK wrote: > > Dear all, > sorry for disappearing on this. I am a little confused: if both parent and > element refer to the same cache how is it possible that clearing one does not > clear the other? > S. Not clear. Maybe it would help to show some specific code?

Re: [sage-devel] Re: CachedInParentMethod clear cache

2019-01-08 Thread VulK
Dear all, sorry for disappearing on this. I am a little confused: if both parent and element refer to the same cache how is it possible that clearing one does not clear the other? S. * E. Madison Bray [2019-01-08 14:49:36]: On Tue, Jan 8, 2019 at 1:51 AM Nils Bruin wrote: On Monday, Jan

Re: [sage-devel] Re: CachedInParentMethod clear cache

2019-01-08 Thread E. Madison Bray
On Tue, Jan 8, 2019 at 1:51 AM Nils Bruin wrote: > > On Monday, January 7, 2019 at 12:48:30 PM UTC-8, Simon King wrote:I did the > implementation a couple of years ago, so, it is possible that >> >> I misremember. However, if I recall correctly, having a reference >> directly from the wrapped met

[sage-devel] Re: CachedInParentMethod clear cache

2019-01-07 Thread Nils Bruin
On Monday, January 7, 2019 at 12:48:30 PM UTC-8, Simon King wrote:I did the implementation a couple of years ago, so, it is possible that > I misremember. However, if I recall correctly, having a reference > directly from the wrapped method to the cache, rather than going from the > wrapped me

[sage-devel] Re: CachedInParentMethod clear cache

2019-01-07 Thread Simon King
Hi! On 2019-01-07, E. Madison Bray wrote: > On Tue, Dec 18, 2018 at 5:29 PM VulK wrote: >> Unfortunately this is not the case; this method store its cache *both* in the >> parent and in the element. Apparently this was done in #8611 for speed >> reasons. I do not really understand the rationale