Zackery Spytz <zspytz at gmail.com> added the comment: I've created a PR for this issue (with tests). ---------- nosy: +ZackerySpytz _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue36379> _______________________________________