Gábor Farkas schrieb:
> explicit is better than implicit :)
Oh come on, I can't hear that particular one any more. Why does
python have implicit storage handling with automatic reference
counting? We'd use C or Assembler if we really believed in that
Mantra.
But your advice is right, of cour
Malcolm Tredinnick wrote:
> On Tue, 2006-10-03 at 22:26 -0700, Beau Hartshorne wrote:
>> On 3-Oct-06, at 7:36 PM, Malcolm Tredinnick wrote:
>>
>>> So this is the value that the string has right at the moment the
>>> exception occurs? Can you paste the traceback you see, please (and
>>> preferably
usually encode('utf-8') is needed only when printing the strings. You
can pass them aroung without problem.
BTW, unicode chars should appear like '\u0345' ... I'm not so sure
about that though.
--~--~-~--~~~---~--~~
You received this message because you are subsc
On Tue, 2006-10-03 at 22:26 -0700, Beau Hartshorne wrote:
> On 3-Oct-06, at 7:36 PM, Malcolm Tredinnick wrote:
>
> > So this is the value that the string has right at the moment the
> > exception occurs? Can you paste the traceback you see, please (and
> > preferably the value of 'sql' and 'param
On 3-Oct-06, at 7:36 PM, Malcolm Tredinnick wrote:
> So this is the value that the string has right at the moment the
> exception occurs? Can you paste the traceback you see, please (and
> preferably the value of 'sql' and 'params' at that point as well).
>
> I'm a bit in the dark about what is h
On Tue, 2006-10-03 at 19:27 -0700, Beau Hartshorne wrote:
> On 3-Oct-06, at 6:56 PM, Malcolm Tredinnick wrote:
>
> > This probably isn't going to solve your problem, but it might help
> > track
> > down what is really happening...
> >
> > UnicodeDecodeError usually means that you are trying to
On 3-Oct-06, at 6:56 PM, Malcolm Tredinnick wrote:
> This probably isn't going to solve your problem, but it might help
> track
> down what is really happening...
>
> UnicodeDecodeError usually means that you are trying to use unicode
> strings that haven't been converted to UTF-8 when they nee
On Tue, 2006-10-03 at 08:15 -0700, Beau Hartshorne wrote:
> On database updates, utf-8 strings like ’ raise an UnicodeDecodeError
> exception on line 19 of util.py (version 0.9.5). I can get around
> this by commenting out this code in util.py, but is there something
> else I could do?
>
>
On database updates, utf-8 strings like ’ raise an UnicodeDecodeError
exception on line 19 of util.py (version 0.9.5). I can get around
this by commenting out this code in util.py, but is there something
else I could do?
self.db.queries.append({
'sql': sql % tuple(params),
'time':
9 matches
Mail list logo