Django

Code

Changeset 5765

Show
Ignore:
Timestamp:
07/26/07 12:16:34 (1 year ago)
Author:
adrian
Message:

Added section to docs/contributing.txt about docstring coding style

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/contributing.txt

    r5664 r5765  
    279279    * Mark all strings for internationalization; see the `i18n documentation`_ 
    280280      for details. 
     281 
     282    * In docstrings, use "action words," like so:: 
     283 
     284          def foo(): 
     285              """ 
     286              Calculates something and returns the result. 
     287              """ 
     288              pass 
     289 
     290      Here's an example of what not to do:: 
     291 
     292          def foo(): 
     293              """ 
     294              Calculate something and return the result. 
     295              """ 
     296              pass 
    281297 
    282298    * Please don't put your name in the code you contribute. Our policy is to