#15149: Bug in pickling of toric varieties, II
-------------------------------------+-------------------------------------
Reporter: jkeitel | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.0
Component: algebraic | Resolution:
geometry | Merged in:
Keywords: toric | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | 15a41647c634421769963f6b6ccabe65c7907789
u/jkeitel/toric_pickling_2 | Stopgaps:
Dependencies: #15050 |
-------------------------------------+-------------------------------------
Comment (by nbruin):
So the better solution is: provide
`CPRFanoToricVariety_field_with_category` with a reduce method that
ensures that attributes such as `_dimension_relative` (probably all
attributes required for computing a hash) get initialized in the
construction phase and leave the rest of the dictionary to be initialized
at the `setstate` phase.
As you can see from these example, this is required for proper pickling
anyway because you would want
{{{
loads(dumps(variety.Todd_class()))
}}}
to work and it's not clear to me that clearing caches is going to resolve
that issue.
Whether you want to strip the dictionary offerered by `reduce` for
pickling of caches is a separate question.
--
Ticket URL: <http://trac.sagemath.org/ticket/15149#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.