imatix/zguide — pull request #140 by minrk (2011-12-02 07:03:29+00:00)
Title: Python majordomo examples

Should be all files `mdcliapi` through `titanic` in the order they appear in the Guide

specifically:
* MDP for constants
* mdbroker/client/worker/cliapi/wrkapi
* tripping benchmark
* mdcliapi2/mdclient2 async client
* mmiecho short example
* titanic/ticlient

Another couple of `zhelpers.py` adjustments:

* `zhelpers.dump(msg_or_socket)` accepts multipart message *or* sockets,
so that it matches the `zmsg_dump` behavior as well.

* add zpipe for zthread_fork-style creation of a pair of inproc PAIRs,
for communicating across threads.

* My previous change to zhelpers.dump was imprecise,
only hexlifying if characters were outside ascii,
when it should have also protected against the low-end,
which is still within ascii.