-
-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-37904: Change
SetSystem
representation
This is an attempt to represent `SetSystem` in a more informative and user-friendly way. Previous: ``` sage: M = matroids.CompleteGraphic(7) sage: M.bases() Iterator over a system of subsets ``` Current: ``` sage: M = matroids.CompleteGraphic(7) sage: M.bases() SetSystem of 16807 sets over 21 elements ``` I think this is an improvement from resorting to calling, e.g., `len`, in order to to get some info, after you get struck with `Iterator over a system of subsets`. Note that a `SetSystem` is not an iterator but simply an iterable (so `__repr__` is also misleading). The previous developers were planning to make it into an _actual_ iterator, as can be seen on [L66](https://githu b.com/sagemath/sage/blob/f1dc325cf01ac542d42257b77aa322cd92e74de8/src/sa ge/matroids/set_system.pyx#L66) of `set_system.pyx`. URL: #37904 Reported by: gmou3 Reviewer(s): Travis Scrimshaw
- Loading branch information
Showing
5 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters