Yet Another MySQL Problem

Tim Chase sed at thechases.com
Thu May 27 13:15:16 EDT 2010


On 05/27/2010 11:56 AM, MRAB wrote:
> Kushal Kumaran wrote:
>>         ', '.join('%s' * len(values)))
>
> That should be:
>
>          ', '.join(['%s'] * len(values)))

Or as I've done in the past:

   ', '.join('%s' for _ in values)

-tkc






More information about the Python-list mailing list