Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
The base class for any morphism in an abstract category.

In abstract categories, a morphism is an arrow between two
category objects.  The object where the arrow starts is called the
domain, while the object where the arrow ends is called the
codomain.

Two morphisms between the same pair of objects are considered to
be the same morphisms.  To distinguish between morphisms between
the same objects use :class:`NamedMorphism`.(more...)

src/s/y/sympy-HEAD/sympy/categories/tests/test_baseclasses.py   sympy(Download)
from sympy.categories import (Object, Morphism, IdentityMorphism,
                              NamedMorphism, CompositeMorphism,
                              Diagram, Category)
from sympy.categories.baseclasses import Class
from sympy.utilities.pytest import XFAIL, raises
 
    raises(ValueError, lambda: NamedMorphism(A, B, ""))
    raises(NotImplementedError, lambda: Morphism(A, B))
 
 

src/s/y/sympy-0.7.5/sympy/categories/tests/test_baseclasses.py   sympy(Download)
from sympy.categories import (Object, Morphism, IdentityMorphism,
                              NamedMorphism, CompositeMorphism,
                              Diagram, Category)
from sympy.categories.baseclasses import Class
from sympy.utilities.pytest import XFAIL, raises
 
    raises(ValueError, lambda: NamedMorphism(A, B, ""))
    raises(NotImplementedError, lambda: Morphism(A, B))
 
 

src/s/y/sympy-HEAD/sympy/core/tests/test_args.py   sympy(Download)
def test_sympy__categories__baseclasses__Morphism():
    from sympy.categories import Object, Morphism
    assert _test_args(Morphism(Object("A"), Object("B")))