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/2001-May/014713.html below:

Change module attribute get & set

[Python-Dev] Re: Change module attribute get & set [Python-Dev] Re: Change module attribute get & setNeil Schemenauer nas@python.ca
Fri, 11 May 2001 07:06:39 -0700
noreply@sourceforge.net wrote:
> Module objects currently don't define the tp_getattro 
> or tp_setattro slots.  As a result, interning of 
> attribute names does them no good:  a char* is always 
> passed, so the dict lookup always needs to do a string 
> compare despite that the attribute name is interned.

I think this is a problem in classobject.c:generic_binary_op as
well.  PyObject_GetAttrString is always used.  I believe the old
code interned names like "__add__" and used PyObject_GetAttr.  Is
it worth fixing this?

  Neil



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