Changeset 118 for branches/timadditionaltypes/pyramid/test/testdata/build_tests/firstpythontest/expected/dev/patches/style2/subnav1/index.html
- Timestamp:
- 02/04/06 19:29:16 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/timadditionaltypes/pyramid/test/testdata/build_tests/firstpythontest/expected/dev/patches/style2/subnav1/index.html
r100 r118 193 193 194 194 </div> 195 <div class="section" id="python-patch-style-guidelines">196 <h1><a name="python-patch-style-guidelines">Python Patch Style Guidelines</a></h1>195 <div class="section"> 196 <h1><a id="python-patch-style-guidelines" name="python-patch-style-guidelines">Python Patch Style Guidelines</a></h1> 197 197 <p>Here are some style guidelines for the production of high quality 198 patches to Python. See the <a class="reference" href="./">patch submission guidelines</a> 198 patches to Python. See the <a class="reference" href="./">patch submission guidelines</a> 199 199 for additional requirements (such as legal boilerplate, 200 200 the use of context diffs, and where to mail patches).</p> … … 213 213 lines fit in 78 columns.</strong> When submitting C code, don't use C++ 214 214 style (//) comments. Write function and method calls like this: 215 <tt class="docutils literal"><span class="pre">foo(arg1,</span> <span class="pre">arg2)</span></tt>; not like this <tt class="docutils literal"><span class="pre">foo(</span> <span class="pre">arg1,</span> <span class="pre">arg2</span> <span class="pre">)</span></tt> 215 <tt class="docutils literal"><span class="pre">foo(arg1,</span> <span class="pre">arg2)</span></tt>; not like this <tt class="docutils literal"><span class="pre">foo(</span> <span class="pre">arg1,</span> <span class="pre">arg2</span> <span class="pre">)</span></tt> 216 216 nor like this: <tt class="docutils literal"><span class="pre">foo</span> <span class="pre">(arg1,</span> <span class="pre">arg2)</span></tt>. The following 217 217 statements are <em>not</em> function calls and do not require 218 218 parentheses: <tt class="docutils literal"><span class="pre">return</span></tt>, <tt class="docutils literal"><span class="pre">del</span></tt>, <tt class="docutils literal"><span class="pre">exec</span></tt>, 219 <tt class="docutils literal"><span class="pre">raise</span></tt>, <tt class="docutils literal"><span class="pre">print</span></tt>. 220 See <a class="reference" href="http://www.python.org/peps/pep-0008.html">PEP 8: Python Style Guide</a> 219 <tt class="docutils literal"><span class="pre">raise</span></tt>, <tt class="docutils literal"><span class="pre">print</span></tt>. 220 See <a class="reference" href="http://www.python.org/peps/pep-0008.html">PEP 8: Python Style Guide</a> 221 221 for more notes on the preferred coding style.</li> 222 222 <li>When you have to patch the C source to make it work on a
