8000 Merge pull request #36 from jnothman/patch-3 · xunzhang/msgpack-python@4d844df · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d844df

Browse files
committed
Merge pull request msgpack#36 from jnothman/patch-3
Warn about StopIteration in README
2 parents 15f309c + 56ef0d0 commit 4d844df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ the result, or ignoring it. The latter two methods return the number of elements
116116
in the upcoming container, so that each element in an array, or key-value pair
117117
in a map, can be unpacked or skipped individually.
118118

119+
Warning: these methods raise ``StopIteration`` when called at the end of the
120+
stream. Unless caught, this may silently break an iteration.
121+
119122
Each of these methods may optionally write the packed data it reads to a
120123
callback function:
121124

0 commit comments

Comments
 (0)
0