[issue13583] sqlite3.Row doesn't support slice indexes

2015-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The implementation can be much simpler, but in any case thank you for your patches Lucas and Jessica. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue13583] sqlite3.Row doesn't support slice indexes

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset e47f520eb756 by Serhiy Storchaka in branch 'default': Issue #13583: sqlite3.Row now supports slice indexing. https://hg.python.org/cpython/rev/e47f520eb756 -- nosy: +python-dev ___ Python tracker

[issue13583] sqlite3.Row doesn't support slice indexes

2015-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: ghaering -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13583] sqlite3.Row doesn't support slice indexes

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you look at the patch Gerhard? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13583] sqlite3.Row doesn't support slice indexes

2015-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch with much simpler implementation. -- components: +Extension Modules Added file: http://bugs.python.org/file38379/sqlite3_row_slice.patch ___ Python tracker __

[issue13583] sqlite3.Row doesn't support slice indexes

2015-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be just use PyObject_GetItem(self->data, idx)? -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue13583] sqlite3.Row doesn't support slice indexes

2015-01-10 Thread Gerhard Häring
Changes by Gerhard Häring : -- assignee: -> ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue13583] sqlite3.Row doesn't support slice indexes

2014-04-27 Thread Jessica McKellar
Jessica McKellar added the comment: I've also uploaded a short script that sets up an in-memory sqlite database that fetches Rows, for easy manual testing. -- Added file: http://bugs.python.org/file35071/sqlite3_slicing_demo.py ___ Python tracker

[issue13583] sqlite3.Row doesn't support slice indexes

2014-04-27 Thread Jessica McKellar
Jessica McKellar added the comment: Thanks for the ticket and patch, xapple! I updated the patch to address the compiler warning and use assertEqual. While testing, I noticed that slicing with steps wasn't supported, so I expanded the sqlite3.Row slicing code to support steps, and added some

[issue13583] sqlite3.Row doesn't support slice indexes

2011-12-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch. Two things: - there is a compilation warning using gcc: /home/antoine/cpython/default/Modules/_sqlite/row.c: In function ‘pysqlite_row_subscript’: /home/antoine/cpython/default/Modules/_sqlite/row.c:128:26: attention : passing argument

[issue13583] sqlite3.Row doesn't support slice indexes

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ghaering versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue13583] sqlite3.Row doesn't support slice indexes

2011-12-11 Thread Lucas Sinclair
New submission from Lucas Sinclair : 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