<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>37062</bug_id>
          
          <creation_ts>2010-04-03 13:45:17 -0700</creation_ts>
          <short_desc>website: Mention Python style on the style guidelines page</short_desc>
          <delta_ts>2011-04-01 16:24:30 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Website</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Jerdonek">cjerdonek</reporter>
          <assigned_to name="Dirk Pranke">dpranke</assigned_to>
          <cc>abarth</cc>
    
    <cc>cjerdonek</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>hamaji</cc>
    
    <cc>levin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>208301</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-04-03 13:45:17 -0700</bug_when>
    <thetext>This report would also be a good place to discuss any additional rules we want to add, for example the ones Shinichiro mentioned here:

https://bugs.webkit.org/show_bug.cgi?id=33639#c7

For easier reference, I will paste them below.  (I&apos;m going to remove the line mentioning my double-quotes proposal though, since I&apos;ve since changed my preference to single quotes.)

(From bug 33639, comment 7)
&gt; I strongly agree to have a style guide for python. It should be PEP8 with a few
&gt; modifications. The candidates of the modifications I remember are
&gt; 
&gt; - don&apos;t put (or put) parentheses for if, elif, and while statements.
&gt; - remove 80 characters per a line rule to be consistent with other code in
&gt; WebKit?
&gt; - prefer &quot;%(file)s:%(line)d&quot; % {&quot;file&quot;: file, &quot;line&quot;: line} to &quot;%s:%d&quot; % (file,
&gt; line) for long string interpolations.
&gt; - prefer r&quot;(?P&lt;file&gt;\w+):(?P&lt;line&gt;\d+)&quot; to r&quot;(\w+):(\d+)&quot; for long regexps.

I also added a section to the wiki page which can contain our latest iteration and which we can modify as a group, prior to putting on the web site.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208302</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-04-03 13:46:33 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; I also added a section to the wiki page which can contain our latest iteration
&gt; and which we can modify as a group, prior to putting on the web site.

http://trac.webkit.org/wiki/PythonGuidelines#Style</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>378182</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-04-01 16:24:30 -0700</bug_when>
    <thetext>closing. This was added quite a while ago.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>