diff options
| author | termie <github@anarkystic.com> | 2011-02-16 22:54:39 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-02-16 22:54:39 +0000 |
| commit | ca440bdc97048e997ec64087d693c68910b6142f (patch) | |
| tree | a451288a71379e0eedf2c6bdc98e1f11f1ce5160 | |
| parent | 2f79a9e57474bbe16085726eaeff47ba93e95e1d (diff) | |
| parent | 556e8a585cf3a344f0ecf386e6195e6e61848071 (diff) | |
| download | nova-ca440bdc97048e997ec64087d693c68910b6142f.tar.gz nova-ca440bdc97048e997ec64087d693c68910b6142f.tar.xz nova-ca440bdc97048e997ec64087d693c68910b6142f.zip | |
Update to our HACKING doc to add examples of our docstring style.
| -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 + + """ |
