[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zodb-dev
Subject:    Re: [ZODB-Dev] ZODB.FileStorage.format: TxnHeader cannot handle Unicode 'descr'
From:       Jim Fulton <jim () zope ! com>
Date:       2013-10-07 15:59:59
Message-ID: CAPDm-FgWDcZX7Hcq0njj0DWGtzoxgt95uAKo7=k=ejNXE1M_Ag () mail ! gmail ! com
[Download RAW message or body]

On Mon, Oct 7, 2013 at 11:58 AM, Tres Seaver <tseaver@palladion.com> wrote:
...
>> transaction.note is defined to take a bytes string.  Pyramid should
>> encode the path before passing it to transaction.note.
>
> The interfaces says "text".  I realize that this is likely for
> "hysterical raisins", but if we mean "bytes", we should say so.
>
> Note that the implementation's use of an unadorned string literal to join
> the values means that in Py3k, it really *is* text, and not bytes.  If we
> want the application to do the encoding, then we should change that
> literal as well.

Agreed.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton
_______________________________________________
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic