Michael Büsch added the comment: >an implementation of the vastly *less* common pattern:
Ok, here are some numbers. My codebase is about 32 kLOC. $ git grep suppressAllExc |wc -l 20 $ git grep contextlib\\.suppress |wc -l 17 (suppressAllExc being my local version to suppress Exception, but exclude a few) So _neither_ one is pretty common. And that's not surprising, as exceptions ought to be properly handled most of the time. However the ratio between the two forms is about 1:1. So I don't agree that it would be "vastly *less* common". But I do accept if such a thing is not wanted upsteam, Altough it basically is a twoliner. I'll simply have to ship my own (I'll have to do that anyway for older Python versions. meh :) Thanks for the discussion. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27814> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com