[zeromq-dev] patch for libpyzmq

Erich Heine sophacles at gmail.com
Tue Jan 27 19:01:14 CET 2009


Hi all,
I have created small patch for pyzmq (it will apply cleanly to 0.4 and
trunk), which is attached below. This changes the return value of
ZMQ.receive.  Instead of only returning the message, it also returns the
queue_id. These return values are packed into a tuple, allowing the use of
the python idiom of:

queue_id, msg = ZMQinstance.receive()

This allows for much more sophisticated use of zmq, without much change.

On a related note... Can someone tell me about the plans for the python
bindings in upcoming versions.

Regards,
Erich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090127/40a6c6ad/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libpyzmq_queuenum.patch
Type: application/octet-stream
Size: 552 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090127/40a6c6ad/attachment.obj>


More information about the zeromq-dev mailing list