From: Guido van Rossum Date: Mon, 10 Apr 1995 11:34:46 +0000 (+0000) Subject: correct typo in example X-Git-Tag: v1.2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48aa82e2df3f50c6ce43ce1273622d239fad05e1;p=thirdparty%2FPython%2Fcpython.git correct typo in example --- diff --git a/Lib/pickle.py b/Lib/pickle.py index 404690e0897b..2895237d4386 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -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).