Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment: This behaviour is documented at https://docs.python.org/3/library/sys.html#sys.displayhook. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue41394> _______________________________________