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: Not every circularly 
> dependent collection of cython objects can be pickled. Cached values can 
> make the difference between what can and cannot be pickled. So whether or 
> not pickling works can't reliably be tested in that case. 
>

I see. Thanks. 

I would wish "do_pickle=True" is the default. But I guess this would 
degrade the performance...

-- 
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 email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/b69edb56-9bc9-4c28-b110-ba307af98e94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to