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

Raymond Hettinger report at bugs.python.org
Sat Mar 20 13:57:23 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> Of 721 uses of the join() method (excluding os.path.join()) 
> in the stdlib, only 10 need forceful stringification with 
> map(str, ...)

Thanks for looking a real world code.  I'm surprised that the standard library stats aren't representative of my experience, perhaps because I tend to write numeric code and do more output formatting than is used internally.

----------

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


More information about the Python-bugs-list mailing list