[New-bugs-announce] [issue13583] sqlite3.Row doesn't support slice indexes
Lucas Sinclair
report at bugs.python.org
Sun Dec 11 22:45:48 CET 2011
New submission from Lucas Sinclair <blastocyst at mac.com>:
When using the sqlite3.Row object as a row factory, one can access the resulting rows by index (such as row[1]) or by name (such as row['b']). However, the slice functionality is lost, as doing row[0:2] raises the error:
"slices not implemented, yet"
Here is a patch that fixes this, I implemented it and I added the corresponding unit test.
----------
files: sqlrowslice.patch
keywords: patch
messages: 149251
nosy: xapple
priority: normal
severity: normal
status: open
title: sqlite3.Row doesn't support slice indexes
type: feature request
versions: Python 2.6, Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23919/sqlrowslice.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13583>
_______________________________________
More information about the New-bugs-announce
mailing list