restriction on sum: intentional bug?

Benjamin Peterson benjamin at python.org
Fri Oct 16 13:01:14 EDT 2009


MRAB <python <at> mrabarnett.plus.com> writes:
> It checks to see whether you're trying to sum strings, so it's already
> treating them as a special case. Why can't it just use str.join
> internally instead in that case instead of raising an exception?

Because that violates explicit is better than implicit.






More information about the Python-list mailing list