[egenix-users] No iterator support?

Martijn Pieters mj at zopatista.com
Mon Oct 29 12:26:34 CET 2007


Using python 2.4 here. I keep getting "TypeError: len() of unsized
object" when trying to use a mx.ODBC cursor as an iterator:

        cursor.execute(query)
        for row in cursor:
            # do something with the row

cursor does have an __iter__ and a next() method, and calling .next()
does give me a result. Am I doing something wrong here?

-- 
Martijn Pieters



More information about the egenix-users mailing list