Eric Smith <eric at trueblade.com> added the comment: I obviously hadn't thought of those cases, either. This version looks good(er) to me. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue7051> _______________________________________