Suggesting methods with similar names

Terry Reedy tjreedy at udel.edu
Wed Mar 30 18:42:44 CEST 2005


> You could achieve this by overriding __getattribute__ (untested):

I believe OP would do better to use __getattr__, which is only called when 
the attribute is not found by the normal lookup, which is the only time he 
needs/wants customized control.

TJR






More information about the Python-list mailing list