Python 扭曲文档

标签 python twisted

在 Twisted 文档中,当我打开任何 Twisted 代码时,我注意到类似

@see: L{IReactorCore<twisted.internet.interfaces.IReactorCore>}
@ivar called: A flag which is C{False} until either C{callback} or
    C{errback} is called and afterwards always C{True}.
@type called: C{bool}

Compute the allowed methods on a C{Resource} based on defined render_FOO
methods. Used when raising C{UnsupportedMethod} but C{Resource} does
not define C{allowedMethods} attribute.

谁能告诉我字母 C、L 像 C{bool}、L{IReactorCore} 是什么意思,@see、@ivar、@type 是什么意思?

最佳答案

Epydoc markup :

C{...}: Source code or a Python identifier.

The inline markup construct L{text<object>} is used to create links to the documentation for other Python objects. text is the text that should be displayed for the link, and object is the name of the Python object that should be linked to. If you wish to use the name of the Python object as the text for the link, you can simply write L{object}``.

fields ( @… ) 被 Twisted 使用 are listed in its documentation generator这取决于 Epydoc,pydoctor:

@author
@cvar
@ivar
@note
@param (synonym: @arg)
@raise (synonym: @raises)
@return (synonym: @returns)
@rtype (synonym: @returntype)
@see (synonym: @seealso)
@type
@var

关于Python 扭曲文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43535793/

相关文章:

python - 是否可以在 Python Twisted 中完全禁用日志记录?

python - Twisted/Amp 网络 : Respond to all clients, 不仅仅是一个发出请求的人

python - 关于在工作节点上分发 python 数据/代码的建议?

python - Pandas 条形图 : use aggregated output as x-axis and colors for each group

python - 如何在特定位置生成字符串中的字符组合?

python - 如何通过设置conda环境在PyCharm中添加conda的所有包?

redis - 我如何以扭曲的工厂方法访问redis?

Python 网络服务

python - virtualenv 没有激活虚拟环境

python - 使用 Pandas DataFrame 列的 Sklearn GridSearchCV