sum(strings)

Paul Rubin http
Thu Jun 19 19:43:11 CEST 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