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/2003-June/036281.html below:

[Python-Dev] Exception masking/chaining

[Python-Dev] Exception masking/chainingAahz aahz@pythoncraft.com
Thu, 12 Jun 2003 17:39:26 -0400
On Thu, Jun 12, 2003, Christian Tismer wrote:
>
> I looked into the execution path of PyObject_GenericGetAttr.
> This first finds the type dictionary and sees if it can find
> something there. So access to special objects appears to be
> quite fast.
> The drawback is that only after searching all of the mro
> dicts, _PyType_Lookup gives up, and then the instance
> dict is inspected.

Yes.  Ping, Guido, and I were working on a patch for this, but stalled
when our solution generated slower results for attributes in the most
immediate base class.
-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you don't know what your program is supposed to do, you'd better not
start writing it."  --Dijkstra



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