sum(strings)

Paul Rubin http
Thu Jun 19 13:43:11 EDT 2003


Alex Martelli <aleax at aleax.it> writes:
> No, if sum accepted a sequence of strings it WOULD
> have to delegate to ''.join in that case -- and I just couldn't
> find an elegant and totally general way to do that. 

Why can't it just check if all the values are strings, and delegate if
they are?




More information about the Python-list mailing list