Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
10668: Homsets.Endset.super_category -> extra_super_category + docume…
Browse files Browse the repository at this point in the history
…ntation
  • Loading branch information
nthiery committed Oct 14, 2014
1 parent 02a6a8a commit 477d381
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions src/sage/categories/homsets.py
Expand Up @@ -231,10 +231,28 @@ class Endset(CategoryWithAxiom):
"""
The category of all endomorphism sets.
At this point, the main purpose of this class is to keep the
information that a category is a Endset category, even if the
base category implements nothing specific about those.
This category serves too purposes: making sure that the
``Endset`` axiom is implemented in the category where it's
defined, namely ``Homsets``, and specifying that ``Endsets``
are monoids.
EXAMPLES::
sage: from sage.categories.homsets import Homsets
sage: Homsets().Endset()
Category of endsets
"""
def super_categories(self):
def extra_super_categories(self):
"""
Implement the fact that endsets are monoids.
.. SEEALSO:: :meth:`CategoryWithAxiom.extra_super_categories`
EXAMPLES::
sage: from sage.categories.homsets import Homsets
sage: Homsets().Endsets().extra_super_categories()
[Category of monoids]
"""
from monoids import Monoids
return [Monoids()]

0 comments on commit 477d381

Please sign in to comment.