Implicit conversion to str in str.join method?
Grant Edwards
grant.b.edwards at gmail.com
Mon Feb 26 15:03:55 EST 2018
On 2018-02-26, Kirill Balunov <kirillbalunov at gmail.com> wrote:
> Currently `str.join` raises `TypeError` if there are any non-string values
> in iterable, including `bytes` objects. Is it an awful idea to implicitly
> _cast_ elements in iterable to their `str` or `repr` representation?
Yes, that's an awful idea. PHP pulls stunts like that behind your
back, and it's a huge source of bugs.
--
Grant Edwards grant.b.edwards Yow! Let's all show human
at CONCERN for REVERAND MOON's
gmail.com legal difficulties!!
More information about the Python-list
mailing list