[issue43535] Make str.join auto-convert inputs to strings.
Jacob Nilsson
report at bugs.python.org
Tue Mar 23 17:19:14 EDT 2021
Jacob Nilsson <jacob.nilsson at ltu.se> added the comment:
For what my opinion is worth, I agree with Grégory's suggestion because the ',' part of ','.join(...) is almost as unintuitive as the problems Raymond's suggestions are trying to fix.
I was going to suggest a builtin to work on both str and bytes, like join(sep=None, strtype=str, *strings) but that interface looks pretty bad...
I think joinstr/joinbytes according to Grégory's suggestion (perhaps as classmethods of str/bytes?) would make the most sense.
----------
nosy: +ajoino
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43535>
_______________________________________
More information about the Python-bugs-list
mailing list