Tal Einat <taleinat at gmail.com> added the comment: I agree that this could be nice. A PR (with tests!) would be welcome! ---------- keywords: +easy _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue38724> _______________________________________