On Mon, Mar 16, 2020 at 01:25:13AM -0400, Wes Turner wrote:

[Greg]
> > 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__?

No. The `__unicode__` dunder was renamed to `__str__` when the `unicode` 
builtin was renamed to `str`.

-- 
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/YTMN2J6SLGS7LWE3RYUDHKV2B6G6I7R4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to