New submission from Guido van Rossum <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2307> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com