#14854: Follow PEP 8 -- Style Guide for Python Code
-------------------------------------+--------------------------------------
          Reporter:  sorl            |         Owner:  nobody
            Status:  closed          |     Milestone:        
         Component:  Core framework  |       Version:  1.2   
        Resolution:  wontfix         |      Keywords:  pep8  
             Stage:  Unreviewed      |     Has_patch:  0     
        Needs_docs:  0               |   Needs_tests:  0     
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Comment (by anonymous):

 Ok so finally for some metrics.
 Lines of code was collected by issuing (at top level of distribution
 packages):
 {{{
     find -name "*.py" | xargs wc -l
 }}}

 Lines that have more than 79 characters were collected issuing (at top
 level of distribution packages):
 {{{
    find -name "*.py" | xargs awk '{ if (length($0) > 79) printf("%s:%s\n",
 FILENAME, FNR);}' | wc -l
 }}}

 Results:
 ||What            || LOCS       || Lines > 79 chars || Ratio
 ||Django trunk    || 101106     || 4525             || 4.48%
 ||Turbo Gears dev || 8781       || 296              || 3.37%
 ||Pylons latest   || 10378      || 218              || 2.10%
 ||Zope 3.4.0c1    || 269273     || 4626             || 1.72%
 ||Twisted 10.2.0  || 269535     || 2946             || 1.09%
 ||Grok trunk      || 7352       || 26               || 0.35%

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14854#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to