1. Armin Rigo
  2. cpython-withatomic

Commits

Guido van Rossum  committed b7e8bc0

correct typo in example

  • Participants
  • Parent commits 9b7e6d9
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/pickle.py

View file
 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).