Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
85602268
Commit
85602268
authored
Feb 03, 2009
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The default shelve pickle protocol should have been 3.
parent
f6e18066
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
Doc/library/shelve.rst
Doc/library/shelve.rst
+1
-1
Lib/shelve.py
Lib/shelve.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/shelve.rst
View file @
85602268
...
...
@@ -23,7 +23,7 @@ lots of shared sub-objects. The keys are ordinary strings.
database file is opened for reading and writing. The optional *flag* parameter
has the same interpretation as the *flag* parameter of :func:`dbm.open`.
By default, version
2
pickles are used to serialize values. The version of the
By default, version
3
pickles are used to serialize values. The version of the
pickle protocol can be specified with the *protocol* parameter.
By default, mutations to persistent-dictionary mutable entries are not
...
...
Lib/shelve.py
View file @
85602268
...
...
@@ -84,7 +84,7 @@ class Shelf(collections.MutableMapping):
keyencoding
=
"utf-8"
):
self
.
dict
=
dict
if
protocol
is
None
:
protocol
=
2
protocol
=
3
self
.
_protocol
=
protocol
self
.
writeback
=
writeback
self
.
cache
=
{}
...
...
Misc/NEWS
View file @
85602268
...
...
@@ -157,6 +157,8 @@ Library
- Issue #1581476: Always use the Tcl global namespace when calling into Tcl.
- The shelve module now defaults to pickle protocol 3.
- Fix a bug in the trace module where a bytes object from co_lnotab had its
items being passed through ord().
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment