Re: [Tutor] Converting string or list to sum
isrgish at fusemail.com
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.
I got a traceback
TypeError: 'str' object is not callable
But when I do,
It works fine.
I'm using ver. 2.3.2 on a Pocket PC.
More information about the Tutor