minute comment changes

This commit is contained in:
Guido van Rossum 1995-02-16 16:30:50 +00:00
parent a8db1df6aa
commit 256cbd7487
2 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@
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 @@
- 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 @@
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

View File

@ -11,7 +11,7 @@
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)