What are these tags @ivar @param and @type in python docstring?

可紊 提交于 2019-12-03 23:32:00

Markup for a documentation tool, probably epydoc.

cdleary

Just for fun I'll note that the Python standard library is using Sphinx/reStructuredText, whose info field lists are similar.

def start(self, ampChild=None):
    """Starts the ProcessPool with a given child protocol.

    :param ampChild: a :class:`ampoule.child.AMPChild` subclass.
    :type ampChild: :class:`ampoule.child.AMPChild` subclass
    """
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!