Changes between Version 13 and Version 14 of PythonGuidelines


Ignore:
Timestamp:
Apr 3, 2010 1:28:15 PM (14 years ago)
Author:
Chris Jerdonek
Comment:

Moved the PEP8 remark to the style section.

Legend:

Unmodified
Added
Removed
Modified
  • PythonGuidelines

    v13 v14  
    88
    99 * WebKit's Python scripts require Python 2.5 or higher to run.
    10  * Informally, we try to follow [http://www.python.org/dev/peps/pep-0008/ PEP8].  Eventually we may make this official.
    1110 * [http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/test-webkitpy Scripts/test-webkitpy] unit tests the Python code.  It also cleans orphan *.pyc files from webkitpy (i.e. .pyc files without a corresponding .py file).  You can also do this manually (for all *.pyc files in webkitpy) using the following command:
    1211{{{
     
    3130== Style ==
    3231
    33 For discussion purposes, here are some style guidelines to consider in addition to [http://www.python.org/dev/peps/pep-0008/ PEP8]:
     32Informally, we try to follow [http://www.python.org/dev/peps/pep-0008/ PEP8].  Eventually we may make this official.
     33
     34For the time being, we are not following the 79 character line length limit (or any line length limit for that matter).
     35
     36For discussion purposes, here are some additional guidelines to consider:
    3437
    3538 * Prefer single quotes to double quotes.  Use double quotes only if the string contains single quotes (or if you are using "triple double quotes").  This makes cutting and pasting from the console easier since Python itself behaves this way when rendering string values to the console.