Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3bbbf18

Browse files
committed
Add what's new entry for r73236.
1 parent c0d98aa commit 3bbbf18

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Doc/whatsnew/3.1.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,24 @@ New, Improved, and Deprecated Modules
384384

385385
(Contributed by Brett Cannon.)
386386

387+
* :mod:`pickle` is now more compatible with Python 2.x when using a
388+
2.x-compatible protocol (that is, protocol 2 or lower), through translation
389+
of some standard library module names to or from their Python 2.x
390+
equivalents.
391+
392+
This means that more (protocol 2 or lower) pickles produced by Python 3.1
393+
will be reusable by Python 2.x, and vice-versa. Standard set objects are
394+
an example of this improvement.
395+
396+
This has the (unfortunate but unavoidable) side effect that some
397+
protocol 2 pickles produced by Python 3.1 won't be readable with
398+
Python 3.0. The latest pickle protocol, protocol 3, should be used when
399+
migrating data between Python 3.x implementations, as it doesn't attempt
400+
to remain compatible with Python 2.x.
401+
402+
(Contributed by Alexandre Vassalotti and Antoine Pitrou, :issue:`6137`.)
403+
404+
387405
Optimizations
388406
=============
389407

0 commit comments

Comments
 (0)