diff options
| author | Ryan Lane <rlane@wikimedia.org> | 2011-03-03 23:04:11 +0000 |
|---|---|---|
| committer | Ryan Lane <rlane@wikimedia.org> | 2011-03-03 23:04:11 +0000 |
| commit | df3a65793ec7bb9d85d2a3da47fbbfb9e97d03d4 (patch) | |
| tree | aab853348a2df9f5cdb26a77dd836d4f2083f119 /HACKING | |
| parent | 4c50ddee48971c76f0f6252295747b89de5d3697 (diff) | |
| parent | 7ca1669603132e3afd14606dda3f95ccbce08a41 (diff) | |
| download | nova-df3a65793ec7bb9d85d2a3da47fbbfb9e97d03d4.tar.gz nova-df3a65793ec7bb9d85d2a3da47fbbfb9e97d03d4.tar.xz nova-df3a65793ec7bb9d85d2a3da47fbbfb9e97d03d4.zip | |
Merge from trunk
Diffstat (limited to 'HACKING')
| -rw-r--r-- | HACKING | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -47,3 +47,22 @@ Human Alphabetical Order Examples from nova.auth import users from nova.endpoint import api from nova.endpoint import cloud + +Docstrings +---------- + """Summary of the function, class or method, less than 80 characters. + + New paragraph after newline that explains in more detail any general + information about the function, class or method. After this, if defining + parameters and return types use the Sphinx format. After that an extra + newline then close the quotations. + + When writing the docstring for a class, an extra line should be placed + after the closing quotations. For more in-depth explanations for these + decisions see http://www.python.org/dev/peps/pep-0257/ + + :param foo: the foo parameter + :param bar: the bar parameter + :returns: description of the return value + + """ |
