summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-07-26 17:16:34 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-07-26 17:16:34 +0000
commit812583ce3b49ec871ded8d281a80ac6809f8df44 (patch)
tree439e1317dd011ca55b6c3767386ed75bde885eab /docs
parent29078eaeca628810d11ae4c5959ab4c5762ef49d (diff)
Added section to docs/contributing.txt about docstring coding style
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5765 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/contributing.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/contributing.txt b/docs/contributing.txt
index 0e8dff68f4..9dbb865a58 100644
--- a/docs/contributing.txt
+++ b/docs/contributing.txt
@@ -279,6 +279,22 @@ Please follow these coding standards when writing code for inclusion in Django:
* Mark all strings for internationalization; see the `i18n documentation`_
for details.
+ * In docstrings, use "action words," like so::
+
+ def foo():
+ """
+ Calculates something and returns the result.
+ """
+ pass
+
+ Here's an example of what not to do::
+
+ def foo():
+ """
+ Calculate something and return the result.
+ """
+ pass
+
* Please don't put your name in the code you contribute. Our policy is to
keep contributors' names in the ``AUTHORS`` file distributed with Django
-- not scattered throughout the codebase itself. Feel free to include a