Antoine Pitrou added the comment: If this is desirable then I think it would be better as a classmethod of Exception:
with KeyError.trap(): do_something() ---------- nosy: +pitrou _______________________________________ 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