This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients BTaskaya, EmilStenstrom, eric.smith, gregory.p.smith, jack1142, mrabarnett, pablogsal, rhettinger, serhiy.storchaka, terry.reedy, veky, xtreak
Date 2021-03-20.22:50:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616280658.85.0.982106095212.issue43535@roundup.psfhosted.org>
In-reply-to
Content
There is a lot of doubt.  That should clearly raise an exception because this function is intended to only operate on strings.

Trivial types examples like that gloss over the actual problem.

data_from_some_computations = [b"foo", b"bar"]  # probably returned by a function

... later on, some other place in the code ...

colon_sep_data = ":".join(data_from_some_computations)

I guarantee you that 99.999% of the time everyone wants an exception there instead of their colon_sep_data to contain `b"foo":b"bar"`.

Implicit conversions always lead to hard to pin down bugs.  An exception raised at the source of the problem is very easy to debug in comparison.
History
Date User Action Args
2021-03-20 22:50:58gregory.p.smithsetrecipients: + gregory.p.smith, rhettinger, terry.reedy, eric.smith, mrabarnett, serhiy.storchaka, veky, pablogsal, xtreak, BTaskaya, EmilStenstrom, jack1142
2021-03-20 22:50:58gregory.p.smithsetmessageid: <1616280658.85.0.982106095212.issue43535@roundup.psfhosted.org>
2021-03-20 22:50:58gregory.p.smithlinkissue43535 messages
2021-03-20 22:50:58gregory.p.smithcreate