Nick Coghlan added the comment: FTR, Raymond and I discussed this on IRC and I gave it a +1 before he committed it.
The advantage the callable form has over a class method is that it readily scales to ignoring multiple exception types in a single with statement. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15806> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com