Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleans up patch swig#232 Fixes misleading error messages from swig#588 If __getattr__ is called, this means that normal attribute lookup has failed. If checking thisown and __swig_getmethods__ fails, then give up and raise AttributeError instead of calling the non-existent object.__getattr__. Note that in practice the result is essentially the same, since trying to access object.__getattr__ fails and raises AttributeError, just with a misleading message. In addition, there's no point in having nondynamic attribute lookup.
- Loading branch information