-
-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #34376: Set_object_enumerated should be in FiniteEnumeratedSets()
{{{ sage: Set([0, 1, 2, 3]) {0, 1, 2, 3} sage: _.category() Category of finite sets sage: Set([0, 1, 2, 3], category=FiniteEnumeratedSets()) TypeError: Set() got an unexpected keyword argument 'category' }}} Likewise for the `Set_object_binary` classes (which implement lazy union, intersection, ...), the category should be computed from the categories of the inputs. Also we add a `category` argument to the `Set` factory and the `__init__` methods of the various implementation classes. Follow ups: - #34398 the relation between `Set_object_enumerated` and `FiniteEnumeratedSet` (and `TrivialFamily`, `EnumeratedFamily`) should be clarified - #34387 `Set()` should construct facade parents URL: https://trac.sagemath.org/34376 Reported by: mkoeppe Ticket author(s): Matthias Koeppe Reviewer(s): Travis Scrimshaw
- Loading branch information
Showing
7 changed files
with
95 additions
and
29 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
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