mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
correct typo in example
This commit is contained in:
parent
96628a90c4
commit
48aa82e2df
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ To pickle an object x onto a file f, open for writing:
|
|||
To unpickle an object x from a file f, open for reading:
|
||||
|
||||
u = pickle.Unpickler(f)
|
||||
x = u.load(x)
|
||||
x = u.load()
|
||||
|
||||
The Pickler class only calls the method f.write with a string argument
|
||||
(XXX possibly the interface should pass f.write instead of f).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue