mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 17:59:52 +00:00
Merge pull request #36 from jnothman/patch-3
Warn about StopIteration in README
This commit is contained in:
commit
4d844df492
1 changed files with 3 additions and 0 deletions
|
|
@ -116,6 +116,9 @@ the result, or ignoring it. The latter two methods return the number of elements
|
|||
in the upcoming container, so that each element in an array, or key-value pair
|
||||
in a map, can be unpacked or skipped individually.
|
||||
|
||||
Warning: these methods raise ``StopIteration`` when called at the end of the
|
||||
stream. Unless caught, this may silently break an iteration.
|
||||
|
||||
Each of these methods may optionally write the packed data it reads to a
|
||||
callback function:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue