diff options
author | Marko Kreen | 2007-07-27 11:50:09 +0000 |
---|---|---|
committer | Marko Kreen | 2007-07-27 11:50:09 +0000 |
commit | d9e1a0848e8d6e76d1bc2746e675086f4e739e2b (patch) | |
tree | 2bac6b2e1984b79e2684bc32be83d04a4c082fc9 /python/skytools/psycopgwrapper.py | |
parent | 02edf21008905e93eb93c3bf10321916f5535e3c (diff) |
allow .copy() operation on rows
Diffstat (limited to 'python/skytools/psycopgwrapper.py')
-rw-r--r-- | python/skytools/psycopgwrapper.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/skytools/psycopgwrapper.py b/python/skytools/psycopgwrapper.py index 043aabbd..4972339e 100644 --- a/python/skytools/psycopgwrapper.py +++ b/python/skytools/psycopgwrapper.py @@ -30,6 +30,9 @@ try: while k >= len(self): self.append(None) return list.__setitem__(self, k, v) + def copy(self): + "Return regular dict" + return dict(self.items()) class _CompatCursor(psycopg2.extras.DictCursor): """Regular psycopg2 DictCursor with dict* methods.""" |