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

lgabiot laurent.gabiot at gmail.com
Sun Jan 26 09:29:11 EST 2014


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 your answer!
your crystal ball was completely right, indeed I use the __future__ 
import, and the b'' fixed everything. Three days I was trying to get this...




More information about the Python-list mailing list