[pypy-commit] pypy py3.5-ssl: allow slicing of a sqlite row
plan_rich
pypy.commits at gmail.com
Wed Dec 7 10:31:02 EST 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: py3.5-ssl
Changeset: r88947:9cb9f285a31e
Date: 2016-12-07 16:30 +0100
http://bitbucket.org/pypy/pypy/changeset/9cb9f285a31e/
Log: allow slicing of a sqlite row
diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -1205,6 +1205,8 @@
def __getitem__(self, item):
if isinstance(item, (int, long)):
return self.values[item]
+ elif isinstance(item, slice):
+ return self.values[item]
else:
item = item.lower()
for idx, desc in enumerate(self.description):
More information about the pypy-commit
mailing list