のんびりSEの議事録

プログラミング系のポストからアプリに関してのポストなどをしていきます。まれにアニメ・マンガなど

Pythonをやるときに参考になりそうな情報


PythonPython ()

Python


  Python 3.5.2 docs.python.jp

qiita.com

www.python-izm.com

23


postd.cc

qiita.com


  pep8-ja 1.0 


azunobu.hatenablog.com


"""3使 __doc__
def hello():
    """Output hello"""
    print("Hellow world")
    
hello.__doc__


help()使
help(hello)

man
$ pydoc sys

-whtml
$ pydoc -w sys

Docstring formats

Sphinx(reST)


Pypy使reStructuredText(reST)


def sample_method(self, param1)
    """
    :param param1 str: Description of param1
    :return: Description of what is return
    :raises MyError: Description of my error
    """

Sphinx

sphinx-users.jp
Google style

Google Sphinx
"""
This is an example of Google style.

Args:
    param1: This is the first param.
    param2: This is a second param.

Returns:
    This is a description of what is returned.

Raises:
    KeyError: Raises an exception.
"""

Google Python Style Guide

Epydoc(Epytext)


javadoc
"""
This is a javadoc style.

@param param1: this is a first param
@param param2: this is a second param
@return: this is a description of what is returned
@raise keyError: raises an exception
"""

Epydoc


postd.cc

qiita.com


26.4. unittest    Python 3.5.2 

akiyoko.hatenablog.jp

PyPI


qiita.com

WSGI


gihyo.jp

Django


 Django  1 | Django documentation | Django

qiita.com

使Python




TVPV2