On Wed, Jun 16, 2021 at 04:01:24PM -0700, Christopher Barker wrote: > I’m pretty sure that using sum with strings was a real issue in real code > before it was disallowed.
But not with the sum() function, which has prohibited strings from it's introduction in 2.3 :-) https://docs.python.org/release/2.3/lib/built-in-funcs.html You are right that the reason the restriction was baked in was because of real issues. -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/3R7Y44A66V5DZBQ76ZY2Z6ZTKL4LTWHB/ Code of Conduct: http://python.org/psf/codeofconduct/