Re: Can't get sqlite3.Row working: keyword lookup doesn't work

2014-01-26 Thread lgabiot
Le 26/01/14 09:05, Peter Otten a écrit : Please remember to cut and past the traceback next time. What is wrong? My crystal ball says that you have a from __future__ import unicode_literals statement at the beginning of the module. If I'm right try row[b"filename"] Thanks a lot for you

Re: Can't get sqlite3.Row working: keyword lookup doesn't work

2014-01-26 Thread Peter Otten
lgabiot wrote: > using Python 2.7.6 > > I try to access a sqlite database using keyword lookup instead of > position (much more easy to maintain code), but it always fail, with the > error: > Index must be int or string > > I have created the database, populated it, and here is the code that > t

Can't get sqlite3.Row working: keyword lookup doesn't work

2014-01-25 Thread lgabiot
Hello, using Python 2.7.6 I try to access a sqlite database using keyword lookup instead of position (much more easy to maintain code), but it always fail, with the error: Index must be int or string I have created the database, populated it, and here is the code that tries to retrieve the