On Mon, Mar 16, 2020, 1:04 AM Greg Ewing <[email protected]> wrote:
> On 16/03/20 2:27 pm, Christopher Barker wrote: > > I imagine a LOT of code out there (doctests, who know > > what else) does in fact expect the str() of builtins not to change -- so > > this is probably dead in the water. > > Also, strs and reprs of arbitrary objects often end up in places > such as log files which aren't equipped to handle unicode or other > fancy things. So keeping them as basic as possible is a good idea. > Is this why __unicode__ was removed in favor of just __str__? It can be argued that logfiles should also be shell control character escaped at ingestion time. > -- > Greg > _______________________________________________ > Python-ideas mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/HBXM7ET3U3X2MUU2PVH57XHZ7EV27D5X/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/YC5NKNRLQOZS7GD4WDJ5FS6YR3P2ADM2/ Code of Conduct: http://python.org/psf/codeofconduct/
