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

Commit 5bad2ff

Browse files
author
Travis Scrimshaw
committed
Replaced get_all_axioms with all_axioms in doctests.
1 parent bc11438 commit 5bad2ff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/sage/categories/category_cy_helper.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ cdef class AxiomContainer(dict):
220220
221221
EXAMPLES::
222222
223-
sage: all_axioms = sage.categories.category_with_axiom.get_all_axioms()
223+
sage: all_axioms = sage.categories.category_with_axiom.all_axioms
224224
sage: isinstance(all_axioms, sage.categories.category_with_axiom.AxiomContainer)
225225
True
226226
"""
@@ -230,7 +230,7 @@ cdef class AxiomContainer(dict):
230230
231231
EXAMPLES::
232232
233-
sage: all_axioms = sage.categories.category_with_axiom.get_all_axioms()
233+
sage: all_axioms = sage.categories.category_with_axiom.all_axioms
234234
sage: max(all_axioms.values())
235235
19
236236
sage: all_axioms.add('Awesome')
@@ -249,7 +249,7 @@ cdef class AxiomContainer(dict):
249249
250250
EXAMPLES::
251251
252-
sage: all_axioms = sage.categories.category_with_axiom.get_all_axioms()
252+
sage: all_axioms = sage.categories.category_with_axiom.all_axioms
253253
sage: max(all_axioms.values())
254254
19
255255
sage: all_axioms += ('Fancy', 'Awesome')
@@ -276,7 +276,7 @@ cpdef inline get_axiom_index(AxiomContainer all_axioms, str axiom):
276276
277277
EXAMPLES::
278278
279-
sage: all_axioms = sage.categories.category_with_axiom.get_all_axioms()
279+
sage: all_axioms = sage.categories.category_with_axiom.all_axioms
280280
sage: from sage.categories.category_cy_helper import get_axiom_index
281281
sage: get_axiom_index(all_axioms, 'AdditiveCommutative') == all_axioms['AdditiveCommutative']
282282
True

src/sage/categories/category_with_axiom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class from the base category class::
339339
With the current implementation, the name of the axiom must also be
340340
added to a global container::
341341
342-
sage: all_axioms = sage.categories.category_with_axiom.get_all_axioms()
342+
sage: all_axioms = sage.categories.category_with_axiom.all_axioms
343343
sage: all_axioms += ("Green",)
344344
345345
We can now use the axiom as usual::
@@ -943,7 +943,7 @@ def _(): return LazyImport('sage.categories.rngs', 'Rngs', at_startup=True)
943943
sage: from sage.categories.category_singleton import Category_singleton
944944
sage: from sage.categories.category_with_axiom import axiom
945945
sage: import sage.categories.category_with_axiom
946-
sage: all_axioms = sage.categories.category_with_axiom.get_all_axioms()
946+
sage: all_axioms = sage.categories.category_with_axiom.all_axioms
947947
sage: all_axioms += ("B","C","D","E","F")
948948
949949
sage: class As(Category_singleton):

0 commit comments

Comments
 (0)