msgpack/msgpack-python — pull request #21 by jnothman (2012-09-23 03:00:39+00:00)
Title: Read header of an array or map as in msgpack-ruby

This patch generalises the `skip()` implementation, replacing its `template_execute(..., int construct)` argument with `template_execute(..., ExecMode exec_mode)`. In some ways this is a difficult-to-maintain style of code-reuse, but it made implementing `read_array_header` and `read_map_header` quite simple.