Query results in SQLAlchemy are returned as named tuples, but SQLAlchemy uses its own flavor of named tuples which is not fully compatible with collections.namedtuple in the standard lib. For instance, "_fields" is called "_labels" in SQLAlchemy, and the method "_asdict()" which could be helpful to convert query results to JSON is missing in SQLAlchemy. Wouldn't it be better to use the standard collections.namedtuples. I know it's only available since Py 2.6, but SQLAlchemy will eventually only work with Py 2.6 anyway, and could just use a fallback implementation for Py 2.5 for the time being.

-- Christoph

--
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 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to