Greg writes: > Christian Heimes wrote: > > Thankfully this issue was fixed in Python 2.6 and 3.0. In newer > > versions of Python hasattr() only swallows exception based on > > the Exception class but not BaseExceptions. > > Shouldn't it only be catching AttributeError, though?
This has come up before - eg http://www.mail-archive.com/[EMAIL PROTECTED]/msg11630.html - which itself starts with the words "This issue has been raised before" :) It points at http://bugs.python.org/issue504714 regarding 2.x - however, if you follow that thread above, it seems Guido is against changing this behaviour even for 3k. cheers, Mark _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com