Re: [Tutor] Converting string or list to sum

Isr Gish isrgish at
Sat Jan 31 21:14:22 EST 2004

Kalle Svensson" wrote:
   >>    >I'd write
   >>    >
   >>    >  d = ''.join(map(str, a))
   >>    >
   >>    >since that's probably much faster for large lists.
   >> I think that should be:
   >> import __builtin__
   >> d = ''.join(map(__builtin__.str, a))

When I try doing.
map(str, a)
I got a traceback 
TypeError: 'str' object is not callable
But when I do,
map(__builtin__.str, a)
It works fine.

I'm using ver. 2.3.2 on a Pocket PC.


More information about the Tutor mailing list