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

Commit

Permalink
trac 28882: fix doctest in thematic_tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Mar 2, 2020
1 parent 758e943 commit f2d8ea9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/doc/en/thematic_tutorials/coercion_and_categories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit f2d8ea9

Please sign in to comment.