]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
minute comment changes
authorGuido van Rossum <guido@python.org>
Thu, 16 Feb 1995 16:30:50 +0000 (16:30 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 16 Feb 1995 16:30:50 +0000 (16:30 +0000)
Lib/pickle.py
Lib/shelve.py

index b5ade573535dadaa39f56b2f8a994f032ea8ce2c..484f4687538a99793b205aa77eb4e3db593d433b 100644 (file)
@@ -84,7 +84,7 @@ that suitable conversions can be made by the class's __setstate__ method.
 
 The interface is as follows:
 
-To pickle an object x onto a file f. open for writing:
+To pickle an object x onto a file f, open for writing:
 
        p = pickle.Pickler(f)
        p.dump(x)
@@ -106,7 +106,7 @@ The following types can be pickled:
 - None
 - integers, long integers, floating point numbers
 - strings
-- tuples, lists and dictionaries containing picklable objects
+- tuples, lists and dictionaries containing only picklable objects
 - class instances whose __dict__ or __setstate__() is picklable
 
 Attempts to pickle unpicklable objects will raise an exception
@@ -114,7 +114,7 @@ after having written an unspecified number of bytes to the file argument.
 
 It is possible to make multiple calls to Pickler.dump() or to
 Unpickler.load(), as long as there is a one-to-one correspondence
-betwee pickler and Unpickler objects and between dump and load calls
+between pickler and Unpickler objects and between dump and load calls
 for any pair of corresponding Pickler and Unpicklers.  WARNING: this
 is intended for pickleing multiple objects without intervening modifications
 to the objects or their parts.  If you modify an object and then pickle
index a7f289f5acb1b36d2a314660ede7a1428369c158..deb8e2264104ba1ee584e79f667d3f829cd9c312 100644 (file)
@@ -11,7 +11,7 @@ To summarize the interface (key is a string, data is an arbitrary
 object):
 
        import shelve
-       d = shelve.open(filename)       # open, with (g)dbm filename
+       d = shelve.open(filename) # open, with (g)dbm filename -- no suffix
 
        d[key] = data   # store data at key (overwrites old data if
                        # using an existing key)