Another Little MySQL Problem

Victor Subervi victorsubervi at gmail.com
Tue May 25 14:45:16 EDT 2010


Hi;
I have this code:

    clientCursor.execute('select ID from %s' % (personalDataTable))
    upds = [itm[0] for itm in clientCursor]
    print "<input type='hidden' name='upds' value='%s' />" % upds

The problem is that the values passed are 1L, 2L.... When I retrieve them on
the other end and try to convert them to integers, guess what happens? So
how do I get rid of that "L"?
TIA,
beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100525/a410e1cf/attachment.html>


More information about the Python-list mailing list