Permalink
Browse files

Fix some bogus errors in examples in the docstrings.

During a major rewrite a couple commits before, I botched up a couple
docstrings.  This commit fixes that problem.
  • Loading branch information...
1 parent 0ce0464 commit baf2d46bb3c388454a6dd1b1dd9b0ec26eaccac5 @scolobb committed Jun 10, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 sympy/categories/baseclasses.py
@@ -191,8 +191,6 @@ def compose(self, g, new_name=""):
>>> C = Object("C")
>>> f = Morphism(A, B, "f")
>>> g = Morphism(B, C, "g")
- >>> f.compose(g) is None
- True
>>> g.compose(f)
Morphism(Object("B"), Object("C"), "g") *
Morphism(Object("A"), Object("B"), "f")
@@ -615,10 +613,7 @@ def hom(self, A, B):
>>> C = Object("C")
>>> f = Morphism(A, B, "f")
>>> g = Morphism(B, C, "g")
- >>> d = Diagram()
- >>> d.add_premise(f)
- >>> d.add_premise(g)
- >>> d.add_conclusion(g * f, "unique")
+ >>> d = Diagram([f, g], {g * f: "unique"})
>>> d.hom(A, C) == (FiniteSet(g * f), FiniteSet(g * f))
True

0 comments on commit baf2d46

Please sign in to comment.