[New-bugs-announce] [issue2307] Decide what to do with bytes/str when transferring pickles between 2.6 and 3.0

Guido van Rossum report at bugs.python.org
Sun Mar 16 22:16:02 CET 2008


New submission from Guido van Rossum <guido at python.org>:

A pickled str instance written by 2.6 currently unpickles under 3.0 as a
bytes instance. That would be correct if the intended use is binary
data, but it's wrong if the intended use is text. My hunch is that
there's more pickled text than binary data. (E.g. a dict containing
instance variables uses (8-bit) str instances for the keys; these *must*
be unpacked as (Unicode) str instances in 3.0.)

The inverse issue also exists.

We need to DECIDE this before starting to code (coding is probably
minimal).  I'm assigning the task to DECIDE (after discussion on the
list) to myself.

----------
assignee: gvanrossum
components: Library (Lib)
messages: 63593
nosy: gvanrossum
priority: high
severity: normal
status: open
title: Decide what to do with bytes/str when transferring pickles between 2.6 and 3.0
type: behavior
versions: Python 2.6, Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2307>
__________________________________


More information about the New-bugs-announce mailing list