Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > When is overriding __getattr__ is useful?

Thread Tools

When is overriding __getattr__ is useful?

Rodrick Brown
Posts: n/a
Can someone provide an example why one would want to override __getattr__
and __getattribute__ in a class?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: When is overriding __getattr__ is useful? Albert Hopkins Python 0 01-07-2013 04:47 PM
py2.1->py2.3.3 __getattr__ confusion Holger Joukl Python 1 07-02-2004 02:00 PM
Operator overloading and __getattr__ Samuel Kleiner Python 6 01-13-2004 06:39 AM
__setattr__ and __getattr__ with derived classes Anand Python 0 12-18-2003 09:36 PM
__getattr__ weirdness Greg Brunet Python 3 08-22-2003 08:29 PM