sum(strings)

Steve McAllister nosp at m.needed
Thu Jun 19 12:14:01 EDT 2003


> Python is not Perl! If you need to build the sum over a sequence of 
> strings containing numbers
> then you need to convert them to numbers.

I am talking about sum(['x', 'y']) -> 'xy'.
Since strings can be added, they should be sumable too.  No? :-)





More information about the Python-list mailing list