Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 256cbd7

Browse files
committed
minute comment changes
1 parent a8db1df commit 256cbd7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/pickle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
8585
The interface is as follows:
8686
87-
To pickle an object x onto a file f. open for writing:
87+
To pickle an object x onto a file f, open for writing:
8888
8989
p = pickle.Pickler(f)
9090
p.dump(x)
@@ -106,15 +106,15 @@
106106
- None
107107
- integers, long integers, floating point numbers
108108
- strings
109-
- tuples, lists and dictionaries containing picklable objects
109+
- tuples, lists and dictionaries containing only picklable objects
110110
- class instances whose __dict__ or __setstate__() is picklable
111111
112112
Attempts to pickle unpicklable objects will raise an exception
113113
after having written an unspecified number of bytes to the file argument.
114114
115115
It is possible to make multiple calls to Pickler.dump() or to
116116
Unpickler.load(), as long as there is a one-to-one correspondence
117-
betwee pickler and Unpickler objects and between dump and load calls
117+
between pickler and Unpickler objects and between dump and load calls
118118
for any pair of corresponding Pickler and Unpicklers. WARNING: this
119119
is intended for pickleing multiple objects without intervening modifications
120120
to the objects or their parts. If you modify an object and then pickle

Lib/shelve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
object):
1212
1313
import shelve
14-
d = shelve.open(filename) # open, with (g)dbm filename
14+
d = shelve.open(filename) # open, with (g)dbm filename -- no suffix
1515
1616
d[key] = data # store data at key (overwrites old data if
1717
# using an existing key)

0 commit comments

Comments
 (0)