Terry J. Reedy <tjre...@udel.edu> added the comment:
Another issue: exit() and quit() work unconditionally when called, regardless of the context: "a = (3, exit(), 'abc')". The abbreviated versions will not. An alternative change is to revise the representation. Perhaps tell the truth first by giving the standard representation -- <class '_sitebuiltins.Quitter'> -- so that people might recognize that they are just seeing a printed string. Then add on the next line, "If you want to exit, enter 'exit' ...". ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44603> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com