Manjusaka <lizheao940510 at gmail.com> added the comment: I think add new function would be a better way I will make a new PR ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue38565> _______________________________________