Eli Bendersky added the comment: The idea looks reasonable. Posted a code review. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18738> _______________________________________