[issue43535] Make str.join auto-convert inputs to strings.

2021-03-20 Thread Emil Stenström
Emil Stenström added the comment: Terry, Gregory: The suggestion is not to change what 1 + "2" does, I fully agree that it behaves at it should. The suggestion is to change what ",".join(1, "2") does. There's no doubt that the intended result is "1,

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-20 Thread Emil Stenström
Emil Stenström added the comment: Since the proposal is fully backwards compatible I don’t think preferring the old version is a reason against this nicer API. After all, people that like the current version can continue using it as they do today. Teaching Python to beginners is a great way

[issue26045] Improve error message for http.client when posting unicode string

2016-01-08 Thread Emil Stenström
Emil Stenström added the comment: I think changing the error message is enough for the short term, and deprecation of automatic encoding is the correct way in the long term. A text that mention "utf-8" which will likely be the correct solution definitely gets my vote, so Guidos

[issue26045] Improve error message for http.client when posting unicode string

2016-01-07 Thread Emil Stenström
New submission from Emil Stenström: This issue is in response to this thread on python-ideas: https://mail.python.org/pipermail/python-ideas/2016-January/037678.html Note that Cory did a lot of encoding background work here: https://mail.python.org/pipermail/python-ideas/2016-January/037680