#17574: Empty hypergraph and __str__ function
-------------------------------------+---------------------------------
Reporter: ncohen | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: combinatorial designs | Keywords:
Merged in: | Authors: Nathann Cohen
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------------------+---------------------------------
Right now an exception is raised when building the empty hypergraph. This
branch fixes it:
{{{
sage: sage: IncidenceStructure([])
Incidence structure with 0 points and 0 blocks
}}}
Also, right now the class has both a `__repr__` and a `__str__` function,
which means that typing `H` in a console does not produce the same output
as typing `print H` in a script. The two functions are made equal: I work
often with this class and pretty often the result of `print H` takes a
whole screen, as it displays *all blocks*.
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/17574>
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/d/optout.