[zeromq-dev] patch for libpyzmq

Erich Heine sophacles at gmail.com
Wed Jan 28 18:35:06 CET 2009

On Wed, Jan 28, 2009 at 3:54 AM, Martin Sustrik <sustrik at fastmq.com> wrote:
> We've decider to add a new function not to break backward compatibility.
> Thus there's still receive fucntion working as it used to as well as
> receive2 function that works the way you've designed it.

Cool.  I think a different name might be more "pythonic"[1] tho, something
like receive_full or receive_queue.

> In addition we've provided python help for the function (lines 219-225) and
> added you to the AUTHORS file.


Btw, before receive2 is stabilised, you may consider enhancing it by an
> option to do non-blocking message reception. All you have to do is to call
> C++ receive with 'block' parameter set to false and return (0,
> empty-message) pair in case no message was received.

I will look into this in the very near future. For this project what do you
mean by "stabilized"?
Somewhat related to all of this:
I've been looking into using the Boost.Python library (available under a MIT
like license) for wrapping up the 0mq code.  From what I know of that
library so far, it will allow for a "more pythonic" translation to python.
 This may not be a direct, 1:1 mapping of methods and objects, but something
close which also utilizes certain python idioms.  My question here is, would
this be something you guys would want official, or a separate but related


[1] Pythonic is a term used in the python community to mean roughly "fits
the idioms and ideals of the language".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090128/92c25ec2/attachment.htm>

More information about the zeromq-dev mailing list