]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
correct typo in example
authorGuido van Rossum <guido@python.org>
Mon, 10 Apr 1995 11:34:46 +0000 (11:34 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 10 Apr 1995 11:34:46 +0000 (11:34 +0000)
Lib/pickle.py

index 404690e0897b7456b435e0f0255f0fe93a0448d1..2895237d438688d7a9583e03a29bc1b6eb403b58 100644 (file)
@@ -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).