#14006: Bug with dumps of hasse diargams
-----------------------------+----------------------------------------------
Reporter: VivianePons | Owner: VivianePons
Type: defect | Status: new
Priority: major | Milestone: sage-5.7
Component: combinatorics | Keywords: Hasse_diagrams, poset
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------------------------
The call of the _rank_function of a hasse diagrams breaks the dumps method
of the object because of a nasty implementation of a cached parameter. (I
suppose it's an old stuff that should be changed to lazy_attribute or
something similar)
{{{
sage: P = Poset()[[BR]]sage: H = P._hasse_diagram[[BR]]sage: s =
dumps(H) [[BR]]sage: H.rank_function()[[BR]]<built-in method
!__getitem!__ of dict object at 0x8a3ecec>[[BR]]sage: s =
dumps(H)[[BR]]Traceback (most recent call last)[[BR]]...[[BR]]!TypeError:
expected string or Unicode object, !NoneType found[[BR]]}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14006>
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].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.