Ob#
- class discopy.cat.Ob(name='')[source]#
Bases:
object
An object with a string as
name
.- Parameters:
name (str) – The name of the object.
Example
>>> x, x_, y = Ob('x'), Ob('x'), Ob('y') >>> assert x == x_ and x != y
Bases: object
An object with a string as name
.
name (str) – The name of the object.
Example
>>> x, x_, y = Ob('x'), Ob('x'), Ob('y')
>>> assert x == x_ and x != y