Michael Foord added the comment: Suggested behaviour sounds good, patch looks sensible. Is it possible to add a test too? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue25900> _______________________________________