Hi!  Does anyone know if there's a reason
sqlalchemy.engine.base.RowProxy doesn't define __getslice__ ?

If I

resultrow = mytable.select().execute().fetchone()

then I can access resultrow[2] or resultrow[4], but not
resultrow[2:4].

I ask primarily because checking for __getslice__ is useful for duck
typing.  Right now, there is no attribute that is present in lists,
tuples, and RowProxy's, but absent from dicts...

Would a patch defining RowProxy.__getslice__ be welcome or misguided?

Thanks!
- Catherine Devlin
http://catherinedevlin.blogspot.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to