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
140794d6
Commit
140794d6
authored
Jan 02, 2013
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Plain Diff
merge heads
parents
6b3f8d37
f29abd32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Doc/library/pickle.rst
Doc/library/pickle.rst
+5
-4
Misc/NEWS
Misc/NEWS
+2
-2
No files found.
Doc/library/pickle.rst
View file @
140794d6
...
...
@@ -352,8 +352,9 @@ The following types can be pickled:
* classes that are defined at the top level of a module
* instances of such classes whose :attr:`__dict__` or :meth:`__setstate__` is
picklable (see section :ref:`pickle-protocol` for details)
* instances of such classes whose :attr:`__dict__` or the result of calling
:meth:`__getstate__` is picklable (see section :ref:`pickle-protocol` for
details).
Attempts to pickle unpicklable objects will raise the :exc:`PicklingError`
exception; when this happens, an unspecified number of bytes may have already
...
...
@@ -364,8 +365,8 @@ raised in this case. You can carefully raise this limit with
Note that functions (built-in and user-defined) are pickled by "fully qualified"
name reference, not by value. This means that only the function name is
pickled, along with the name of the module the function is defined in. Neither
the
function's code, nor any of its function attributes are pickled. Thus the
pickled, along with the name of the module the function is defined in. Neither
the
function's code, nor any of its function attributes are pickled. Thus the
defining module must be importable in the unpickling environment, and the module
must contain the named object, otherwise an exception will be raised. [#]_
...
...
Misc/NEWS
View file @
140794d6
...
...
@@ -184,8 +184,8 @@ Library
- Issue 10527: make multiprocessing use poll() instead of select() if available.
- Issue #16485:
Fix file descriptor not being closed if file header patching
fails on closing of
aifc file.
- Issue #16485:
Now file descriptors are closed if file header patching failed
on closing an
aifc file.
- Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket'
s
timeout
expires
(
it
used
to
return
None
).
...
...
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