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/2000-April/003312.html below:

[Python-Dev] Arbitrary attributes on funcs and methods

[Python-Dev] Arbitrary attributes on funcs and methods [Python-Dev] Arbitrary attributes on funcs and methodsGreg Stein gstein@lyra.org
Mon, 10 Apr 2000 18:37:45 -0700 (PDT)
On Mon, 10 Apr 2000 bwarsaw@python.org wrote:
>...
>     GS> And note that the getattro/setattro is preferred. It is easy
>     GS> to extract the char* from them; the other direction requires
>     GS> construction of an object.
> 
> Good point.

Oh. Also, I noticed that you removed a handy optimization from the getattr
function. Testing a character for '_' *before* calling strcmp() will save
a good chunk of time, especially considering how often this function is
used. Basically, review whether a quick test can save a strmp() call (and
can be easily integrated).

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/




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