#11895: padic_ZZ_pX_CR_element is unhashable
--------------------------------+-------------------------------------------
Reporter: mmasdeu | Owner: roed
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-5.4
Component: padics | Resolution:
Keywords: p-adic, hash | Work issues: whitespace, line wrapping in
docstrings
Report Upstream: N/A | Reviewers: David Loeffler
Authors: David Roe | Merged in:
Dependencies: | Stopgaps:
--------------------------------+-------------------------------------------
Comment (by saraedum):
I had a look into this. Except for one place (which could certainly be
worked around somehow), the doctests seem to fail because caching doesn't
work anymore. Would there be something wrong with adding a
{{{_cache_key()}}} to {{{SageObject}}} which per default returns
{{{self}}}. Only if the element is not hashable (but should be) it could
return something that is actually a unique key for this element —
something like {{{self.dumps()}}} maybe.
I gave it a try (see attached patch). The only doctests that fail seem to
be a few places where {{{self.dumps()}}} doesn't work and a one problem in
{{{sage/modular/overconvergent/weightspace.py}}}.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11895#comment:8>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.