diff --git a/src/doc/en/thematic_tutorials/coercion_and_categories.rst b/src/doc/en/thematic_tutorials/coercion_and_categories.rst index bd76813e9c8..b58c9c59de7 100644 --- a/src/doc/en/thematic_tutorials/coercion_and_categories.rst +++ b/src/doc/en/thematic_tutorials/coercion_and_categories.rst @@ -447,10 +447,10 @@ Sage's category framework can differentiate the two cases:: And indeed, ``MS2`` has *more* methods than ``MS1``:: sage: import inspect - sage: len([s for s in dir(MS1) if inspect.ismethod(getattr(MS1,s,None))]) - 81 - sage: len([s for s in dir(MS2) if inspect.ismethod(getattr(MS2,s,None))]) - 121 + sage: L1 = len([s for s in dir(MS1) if inspect.ismethod(getattr(MS1,s,None))]) + sage: L2 = len([s for s in dir(MS2) if inspect.ismethod(getattr(MS2,s,None))]) + sage: L1 < L2 + True This is because the class of ``MS2`` also inherits from the parent class for algebras::