在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}是什么意思?
发布于 2017-04-21 06:55:42
是Epydoc标记
C{...}:源代码或Python标识符。内联标记构造L{text<object>}用于为其他Python对象创建指向文档的链接。text是应该为链接显示的文本,object是应该链接到的Python对象的名称。如果希望使用Python对象的名称作为链接的文本,只需编写L{object}``。
依赖于Epydoc的Twisted 字段 (@…):
@author
@cvar
@ivar
@note
@param (synonym: @arg)
@raise (synonym: @raises)
@return (synonym: @returns)
@rtype (synonym: @returntype)
@see (synonym: @seealso)
@type
@varhttps://stackoverflow.com/questions/43535793
复制相似问题