__getattribute__ doesn't work on 'type' type for '__class__'

Barry Kelly barry.j.kelly at gmail.com
Tue Jun 20 19:17:49 EDT 2006


Barry Kelly <barry.j.kelly at gmail.com> wrote:

> From "pydoc __getattribute__":
> 
> ---8<---
> Help on method-wrapper object:
> 
> __getattribute__ = class method-wrapper(object)
>  |  Methods defined here:
>  |  
>  |  __call__(...)
>  |      x.__call__(...) <==> x(...)
>  |  
>  |  __getattribute__(...)
>  |      x.__getattribute__('name') <==> x.name
> --->8---

Thanks for the answers, folks. I did find getattr() quite quickly from
Google, but it's clear that the documentation with Python is wrong.

-- Barry

-- 
http://barrkel.blogspot.com/



More information about the Python-list mailing list