Re: [Python-Dev] getattr vs hashattr

2014-03-17 Thread Brett Cannon
On Fri, Mar 14, 2014 at 3:01 PM, Chris Withers wrote: > On 03/12/2014 04:49 PM, Chris Angelico wrote: >> >>> You can use hasattr() in place of AttributeError >>> >> > Is that true now? It used to be that hasattr swallowed all exceptions > rather than just AttributeError making is a very dangerous

Re: [Python-Dev] getattr vs hashattr

2014-03-16 Thread Chris Withers
On 03/12/2014 04:49 PM, Chris Angelico wrote: You can use hasattr() in place of AttributeError Is that true now? It used to be that hasattr swallowed all exceptions rather than just AttributeError making is a very dangerous weapon for anything (such as an orm or odb) that might do something i