A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-February/071067.html below:

[Python-Dev] Summary of "dynamic attribute access" discussion

[Python-Dev] Summary of "dynamic attribute access" discussion [Python-Dev] Summary of "dynamic attribute access" discussionLarry Hastings larry at hastings.org
Tue Feb 13 22:38:42 CET 2007
Larry Hastings wrote:
> I just duplicated this test on all the .py files in the Lib directory 
> tree of a freshly updated 2.5 trunk.
Whoops!  Sorry, bungled it again.  I counted definitions of __*attr__ too.

This time I used "fgrep -w getattr | fgrep 'getattr('" to cull.  The 
corrected results:
    9    27   611 dels
  488  2637 38947 gets
  120   539  8644 sets
  617  3203 48202 total

So 617 lines out of 471,821 lines called *attr() functions, or 0.13%.  
In other words *attr() functions are used on 1 out of every 764 lines.


/larry/
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4