[Sqlalchemy-tickets] Issue #3463: RowProxy and ResultProxy should implement complete standard inter
Brought to you by:
zzzeek
|
From: Javier D. C. <iss...@bi...> - 2015-06-22 14:36:21
|
New issue 3463: RowProxy and ResultProxy should implement complete standard interfaces https://bitbucket.org/zzzeek/sqlalchemy/issue/3463/rowproxy-and-resultproxy-should-implement Javier Domingo Cansino: I have been using sqlalchemy core and I have found that in RowProxy and ResultProxy, standard interfaces are implemented (and even recommended), but not totally, confusing users (like me). Although these interfaces implement some of the methods to treat the results as tuples or dicts, they don't implement the ones that give the actual support for these datatypes. The implementation of standard basetype interfaces should be done using ABCs: https://docs.python.org/3/library/collections.abc.html In my case, .get() was the function that I expected to be supported (given the dict access they have) but wasn't working, so I switched to a getattr() call instead. |