Length of an Unsized Object
Victor Subervi
victorsubervi at gmail.com
Thu Dec 31 11:09:36 EST 2009
Hi;
I have this code:
sql = 'describe %s %s;' % (optionsStore, option)
print sql
cursor.execute(sql)
descr = cursor.fetchone()
if len(descr) is not None:
Python complains:
*TypeError*: len() of unsized object
Please advise how to rewrite the last line so as to avoid the infamous
try/except.
TIA,
beno
--
The Logos has come to bear
http://logos.13gems.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091231/f5f5a4ee/attachment-0001.html>
More information about the Python-list
mailing list