Yet Another MySQL Problem

Victor Subervi victorsubervi at gmail.com
Thu May 27 16:32:24 EDT 2010


On Thu, May 27, 2010 at 1:15 PM, Tim Chase <sed at thechases.com> wrote:

> 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)
>

Huh? Can you describe that underscore to me? Fascinating!
beno

>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100527/319bf49d/attachment.html>


More information about the Python-list mailing list