Changes between Version 3 and Version 4 of Submitting/wxGUI


Ignore:
Timestamp:
Jun 13, 2014, 4:53:30 AM (10 years ago)
Author:
lucadelu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Submitting/wxGUI

    v3 v4  
    4848== Documentation and comments ==
    4949
     50== Documentation and comments ==
     51Some information about docstrings:
     52
     53 * always use """triple double quotes""" around docstrings
     54 * there's no blank line either before or after the docstring
     55 * add information on the parameters used by the function you have to use the following format
     56   {{{
     57   :param TYPE NAMEPARAM: explanation
     58   }}}
     59   where TYPE is the type (bool, str, int) of parameter and it is optional; NAMEPARAM is the name of parameter
     60 * add information about the return of function using
     61   {{{
     62   :return: explanation
     63   }}}
     64 * add reference to classes and function using
     65   {{{
     66   :class:`CLASSNAME`
     67   :func:`FUNCNAME`
     68   }}}
     69 * add TODO in docstring as follow
     70   {{{
     71   .. todo::
     72       information todo
     73   }}}
     74   in similar way you can add warning and note.
     75
    5076When using class Signal from `grass.pydispatch.signal`, write a short description to as a constructor parameter and describe implementation details in standard comments
    5177before the definition. Note the signal in each function which is invoking it.