sum(strings)

Andreas Jung andreas at andreas-jung.com
Thu Jun 19 11:32:33 EDT 2003


--On Donnerstag, 19. Juni 2003 17:05 Uhr +0200 Steve McAllister 
<nosp at m.needed> wrote:

> Why does sum reject strings?  Is it a matter of efficiency of the
> underlying implementation?
>

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.

-aj

P.S. it's somewhat rude to use an invalid email address for postings





More information about the Python-list mailing list