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

Emil Stenström report at bugs.python.org
Sat Mar 20 15:55:54 EDT 2021


Emil Stenström <emil at emilstenstrom.se> 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 to find the warts of a language (I’ve done it too). In the beginning people struggle with arrays and if-blocks, and having to go into how map and the str constructor work together to get a comma separated list of ints is just too much. Beginners are an important group of programmers that this proposal will clearly benefit.

I’m sure there will be some “None”-strings that will slip through this, but I think the upside far outweighs the downside in this case.

Big +1 from me.

----------
nosy: +EmilStenstrom

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43535>
_______________________________________


More information about the Python-bugs-list mailing list