[Python-Dev] Python 2.2a* getattr suggestion and question
Roman Suzi
rnd@onego.ru
Sun, 30 Sep 2001 17:48:36 +0400 (MSD)
On Sun, 30 Sep 2001, Gordon McMillan wrote:
>Hmm. If that last line you typed into the interp was, in fact,
>"b.aa()", then there's nothing new here. The "print" asked for
>__repr__ and got None. You'll get something very similar in
>any version of Python.
>
>If you really typed "b.aa", then something's really strange,
>because you didn't ask to call anything, yet B's __getattr__
>was asked for "__repr__", not "aa". Since I doubt Guido has
>adopted VB's call-with-no-args-doesn't-need-parens, I bet you
>misquoted your session.
No, I have it right. It was my intention to try b.aa. Every Python object
has ability to represent itself as string. That is what I wanted here.
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."" _/