George Sakkis
2006-10-20 01:53:55 UTC
I tried to get the length of a result set and I ran into the this
error. While I understand that ResultProxy is modeled more like an
iterator than a sequence, I introspected the proxy object and it turns
out it has a 'rowcount' attribute which stores the expected length. Is
there a reason why there's not a __len__ that returnes this rowcount ?
Thanks,
George
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to sqlalchemy-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sqlalchemy
-~----------~----~----~----~------~----~------~--~---
error. While I understand that ResultProxy is modeled more like an
iterator than a sequence, I introspected the proxy object and it turns
out it has a 'rowcount' attribute which stores the expected length. Is
there a reason why there's not a __len__ that returnes this rowcount ?
Thanks,
George
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to sqlalchemy-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sqlalchemy
-~----------~----~----~----~------~----~------~--~---