Unverified 提交 2a7f3e16 authored 作者: Chris Fonnesbeck's avatar Chris Fonnesbeck 提交者: GitHub

Improve elemwise docstrings (#1255)

上级 5b82a40d
...@@ -1667,7 +1667,7 @@ def scalar_elemwise(*symbol, nfunc=None, nin=None, nout=None, symbolname=None): ...@@ -1667,7 +1667,7 @@ def scalar_elemwise(*symbol, nfunc=None, nin=None, nout=None, symbolname=None):
rval = Elemwise(scalar_op, nfunc_spec=(nfunc and (nfunc, nin, nout))) rval = Elemwise(scalar_op, nfunc_spec=(nfunc and (nfunc, nin, nout)))
if getattr(symbol, "__doc__"): if getattr(symbol, "__doc__"):
rval.__doc__ = symbol.__doc__ + "\n\n " + rval.__doc__ rval.__doc__ = symbol.__doc__
# for the meaning of this see the ./epydoc script # for the meaning of this see the ./epydoc script
# it makes epydoc display rval as if it were a function, not an object # it makes epydoc display rval as if it were a function, not an object
......
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论