
Dec. 27, 2016
11:58 a.m.
On Tue, Dec 27, 2016 at 9:11 PM, Zahari <zaharid@gmail.com> wrote:
This looks like a good idea. Note that there is also getattr(X(), 'y', 'default') that would have to behave like this.
Forgot about that. Feel free to enhance the hasattr replacement. I still think the parameterization of AttributeError would be worth doing, but the two are independent. ChrisA