[ZODB-Dev] ZODB.FileStorage.format: TxnHeader cannot handle Unicode 'descr'

Jim Fulton jim at zope.com
Mon Oct 7 17:59:59 CEST 2013


On Mon, Oct 7, 2013 at 11:58 AM, Tres Seaver <tseaver at 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


More information about the ZODB-Dev mailing list