News for hackers. Stuff that matters.
Re:What's Coming in Python 3.8 by n3k5 on Thursday July 18, 2019 @06:32AM (#20468429)
In GP's example, the call to str() isn't there to make sure you get a string instead of causing a type error; it's there to substitute str() for repr() (which also returns a string). Considering that this feature is mainly meant to make 'print debugging' more convenient, it makes sense that repr() is the default choice.

There are no comments on this comment yet.