Added iteritem method to DictRow.

This commit is contained in:
Federico Di Gregorio 2006-10-06 05:22:54 +00:00
parent d189203f9f
commit bfe5b8fe6b

View File

@ -118,6 +118,9 @@ class DictRow(list):
except:
return default
def iteritems(self):
for n, v in self._index.items():
yield n, list.__getitem__(self, v)
class SQL_IN(object):
"""Adapt any iterable to an SQL quotable object."""