Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64795

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <laurent.gabiot@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.245
X-Spam-Level **
X-Spam-Evidence '*H*': 0.54; '*S*': 0.03; '__future__': 0.16; "b''": 0.16; '\xe9crit': 0.16; 'trying': 0.19; 'import': 0.22; 'header :User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'statement': 0.30; "i'm": 0.30; 'ball': 0.31; 'says': 0.33; 'beginning': 0.33; 'received:google.com': 0.35; 'module.': 0.36; 'next': 0.36; 'thanks': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'days': 0.60; 'skip:u 10': 0.60; 'subject:Can': 0.60; 'cut': 0.74; 'subject:get': 0.81; 'everything.': 0.84; 'otten': 0.84; 'this...': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:newsgroups:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=EAwcuyIQlTuSLLOKLBpvMMzzZpWgry0LFkIUOx/NV6c=; b=E2u7c0own5fEENqoArwvcD8jF3oeijXkqMoSRroQk1zXLfsmhSj+JbK3yF9lusg46/ STFogU9QO8DDIDp9XbJG3pir+lCdfzBryBtkmBxBrYEqXy3yeFaCa8vayDtOUpIcNaTj QosVa6/EEDxfA0dMMqgT447oe3yycxUNR8gKM7Zgcj9Vjw9hhr/9SHn6I+Ul0sao+b0y L3wVnnZM2qsnFIdXOAT3U98bGQ2BuMThXo92q1Ri1ZyDxt5HbaC6HPLg8txkk/rxElPj zKd5oAlfghjay0muhpRHkCD8eQ09XawFt2WnP0SxBwce+5h+3Wwx3ho+w2FX2a21t+l6 3hew==
X-Received by 10.180.38.11 with SMTP id c11mr8957419wik.60.1390746556095; Sun, 26 Jan 2014 06:29:16 -0800 (PST)
Date Sun, 26 Jan 2014 15:29:11 +0100
From lgabiot <laurent.gabiot@gmail.com>
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version 1.0
Newsgroups comp.lang.python
To python-list@python.org
Subject Re: Can't get sqlite3.Row working: keyword lookup doesn't work
References <52e46bf3$0$2378$426a34cc@news.free.fr> <mailman.5990.1390723532.18130.python-list@python.org>
In-Reply-To <mailman.5990.1390723532.18130.python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 8bit
X-Mailman-Approved-At Sun, 26 Jan 2014 21:52:33 +0100
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.6003.1390769554.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1390769554 news.xs4all.nl 2974 [2001:888:2000:d::a6]:53557
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64795

Show key headers only | View raw


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...

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Can't get sqlite3.Row working: keyword lookup doesn't work lgabiot <lgabiot@hotmail.com> - 2014-01-26 02:59 +0100
  Re: Can't get sqlite3.Row working: keyword lookup doesn't work Peter Otten <__peter__@web.de> - 2014-01-26 09:05 +0100
    Re: Can't get sqlite3.Row working: keyword lookup doesn't work lgabiot <lgabiot@hotmail.com> - 2014-01-26 15:29 +0100
    Re: Can't get sqlite3.Row working: keyword lookup doesn't work lgabiot <laurent.gabiot@gmail.com> - 2014-01-26 15:29 +0100

csiph-web