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

Commit

Permalink
Doctest to illustrate that caching of DirichletGroups works
Browse files Browse the repository at this point in the history
  • Loading branch information
saraedum committed Apr 9, 2014
1 parent 55bf7be commit ebe6a39
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sage/modular/dirichlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,15 @@ class DirichletGroupFactory(UniqueFactory):
Group of Dirichlet characters of modulus 60 over Maximal Order in Cyclotomic Field of order 4 and degree 2
sage: parent(DirichletGroup(60, integral=True).gens()[2].values_on_gens()[2])
Maximal Order in Cyclotomic Field of order 4 and degree 2
TESTS:
Dirichlet groups are cached, creating two groups with the same parameters
yields the same object::
sage: DirichletGroup(60) is DirichletGroup(60)
True
"""
def create_key(self, modulus, base_ring=None, zeta=None, zeta_order=None, names=None, integral=False):
"""
Expand Down

0 comments on commit ebe6a39

Please sign in to comment.