'string.join' is wrong in my Python console

Robin Koch robin.koch at t-online.de
Thu Dec 3 12:01:21 EST 2015


Am 03.12.2015 um 17:25 schrieb Ian Kelly:
> On Thu, Dec 3, 2015 at 9:00 AM, Robin Koch <robin.koch at t-online.de> wrote:
>> Now *I* am confused.
>>
>> Shouldn't it be
>>
>> ", ".join(['1', '2', '4', '8', '16'])
>>
>> instead? Without any importing?
>
> That would be the normal way to write it. The FAQ entry is suggesting
> the string module function as an alternative for those who can't
> accept it as a string method.

Whoops.
Thanks and sorry. :-)

-- 
Robin Koch




More information about the Python-list mailing list