提交 8a52fe6e authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Update Generic class docstring

上级 81462c66
...@@ -274,15 +274,16 @@ class CType(Type, CLinkerType): ...@@ -274,15 +274,16 @@ class CType(Type, CLinkerType):
class Generic(CType, Singleton): class Generic(CType, Singleton):
""" r"""A type for a generic Python object exposed directly in C.
Represents a generic Python object.
This class implements the `CType` and `CLinkerType` interfaces This class implements the `CType` and `CLinkerType` interfaces
for generic PyObject instances. for generic ``PyObject`` instances.
EXAMPLE of what this means, or when you would use this type. It can be used to easily expose Python objects to `COp`\s.
WRITEME For example, ``obj_const = Constant(Generic(), my_obj)`` will construct
an Aesara constant that can be used to access the Python object ``my_obj``
directly in a `COp` (e.g. as a ``PyObject *``).
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论