Meador Inge <meadori at gmail.com> added the comment: Victor, I like the decorator approach much better. Thanks. Attached is a new patch with that update. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue1172711> _______________________________________