Message389190
Terry, Gregory: The suggestion is not to change what 1 + "2" does, I fully agree that it behaves at it should. The suggestion is to change what ",".join(1, "2") does. There's no doubt that the intended result is "1, 2". That's why it's possible to coerce.
About the example with a list with mixed types: If the reason that example is buggy is "this list should only have strings", a better way to enforce that is to add types to enforces it. |
|
Date |
User |
Action |
Args |
2021-03-20 22:13:48 | EmilStenstrom | set | recipients:
+ EmilStenstrom, rhettinger, terry.reedy, gregory.p.smith, eric.smith, mrabarnett, serhiy.storchaka, veky, pablogsal, xtreak, BTaskaya, jack1142 |
2021-03-20 22:13:48 | EmilStenstrom | set | messageid: <1616278428.01.0.846997309497.issue43535@roundup.psfhosted.org> |
2021-03-20 22:13:48 | EmilStenstrom | link | issue43535 messages |
2021-03-20 22:13:47 | EmilStenstrom | create | |
|