zeromq/pyzmq — pull request #172 by minrk (2012-02-04 03:01:10+00:00)
Title: PyZMQ API improvements

Work in progress, not ready for merge

Some new APIs and deprecations of old ones that made no sense.

## Deprecations

* Stop using POLLERR, and deprecate on_err in ZMQStream, which never did anything because POLLER can never occur on zmq sockets.

## New Features

* default socket options can be set as attributes on Contexts. This lets you do `ctx.linger = 0` to set the initial LINGER of *all* subsequently created sockets, and the same with all sockopts.
* `ZMQStream.on_recv2/on_send2` callbacks, which get the stream as the first argument, in addition to those that were previously passed. Makes it easier to use a single function as the callback for multiple sockets.

## Changes

* `zmq.Message` renamed to `zmq.Frame`, to better match high-level binding naming conventions. zmq.Message name remains for backwards compatibility.

## Cleanup

* Removed some `#!` lines from module files that are not scripts