diff options
| author | Rick Harris <rick.harris@rackspace.com> | 2011-02-16 23:09:08 +0000 |
|---|---|---|
| committer | Rick Harris <rick.harris@rackspace.com> | 2011-02-16 23:09:08 +0000 |
| commit | 28a38e0dc00a7a7695bfec6f33a365ac2ab2106d (patch) | |
| tree | c74fc3e0bc85c859bb4052d191568313f3a07847 /HACKING | |
| parent | a5ec2be709d28267075ddc9616c5c29b62622af5 (diff) | |
| parent | ca440bdc97048e997ec64087d693c68910b6142f (diff) | |
Merging 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 + + """ |
