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-September/017660.html below:

[Python-Dev] Python 2.2a* getattr suggestion and question

[Python-Dev] Python 2.2a* getattr suggestion and questionRoman Suzi rnd@onego.ru
Sun, 30 Sep 2001 17:56:40 +0400 (MSD)
On Sun, 30 Sep 2001, Guido van Rossum wrote:

>> Well, now every attr access goes thru __getattr__-method,
>> so this could cause situations which give not so clear
>> diagnostics:
>
>Please update to 2.2a4.  Every new-style instance attribute access
>goes throuh __getattribute__; __getattr__ does the same as for classic
>classes.

That is good to hear! I forgot to upgrade to latest version before
posting complains, sorry.

>It's true that if you screw with __getattribute__, you'll still break
>your objects; but that's hard to avoid given how things work.

Sure. Still, I think interpreter diagnostics should be pointing to the
exact place of trouble. At least, __getattribute__ must appear somewhere
in the traceback to give a hint where from __repr__ was attempted to be
called.

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd@onego.ru _/
_/ Sunday, September 30, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Killer Rabbit's Motto: "Lettuce Prey."" _/




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