<div class="gmail_quote">On Wed, May 26, 2010 at 11:25 AM, Kushal Kumaran <span dir="ltr"><<a href="mailto:kushal.kumaran@gmail.com">kushal.kumaran@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, 2010-05-25 at 14:45 -0400, Victor Subervi wrote:<br>
</div><div><div></div><div class="h5">> Hi;<br>
> I have this code:<br>
><br>
>     clientCursor.execute('select ID from %s' % (personalDataTable))<br>
>     upds = [itm[0] for itm in clientCursor]<br>
>     print "<input type='hidden' name='upds' value='%s' />" % upds<br>
><br>
> The problem is that the values passed are 1L, 2L.... When I retrieve<br>
> them on the other end and try to convert them to integers, guess what<br>
> happens? So how do I get rid of that "L"?<br>
<br>
</div></div>You could build a list of ints instead of a list of longs, like this:<br>
<br>
upds = [int(itm[0]) for itm in clientCursor]<br></blockquote><div><br>Oh, geez. That should have been obvious to me! Thanks!<br>beno<br></div></div><br>