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

Skip to content

Commit 7fea562

Browse files
author
Mark Pilgrim
committed
more cross-refs
1 parent 5565d9c commit 7fea562

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

special-method-names.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,15 +687,15 @@ <h2 id=pickle>Classes That Can Be Serialized</h2>
687687
<td>a custom object deepcopy
688688
<td><code class=pp>copy.deepcopy(x)</code>
689689
<td><a href=http://docs.python.org/3.1/library/copy.html><code>x.<dfn>__deepcopy__</dfn>()</code></a>
690-
<tr><th>
690+
<tr><th>*
691691
<td>to get an object&#8217;s state before pickling
692692
<td><code class=pp>pickle.dump(x, <var>file</var>)</code>
693693
<td><a href=http://docs.python.org/3.1/library/pickle.html#pickle-state><code>x.<dfn>__getstate__</dfn>()</code></a>
694-
<tr><th>
694+
<tr><th>*
695695
<td>to serialize an object
696696
<td><code class=pp>pickle.dump(x, <var>file</var>)</code>
697697
<td><a href=http://docs.python.org/3.1/library/pickle.html#pickling-class-instances><code>x.<dfn>__reduce__</dfn>()</code></a>
698-
<tr><th>
698+
<tr><th>*
699699
<td>to serialize an object (new pickling protocol)
700700
<td><code class=pp>pickle.dump(x, <var>file</var>, <var>protocol_version</var>)</code>
701701
<td><a href=http://docs.python.org/3.1/library/pickle.html#pickling-class-instances><code>x.<dfn>__reduce_ex__</dfn>(<var>protocol_version</var>)</code></a>

0 commit comments

Comments
 (0)