[zeromq-dev] Wrong python example in guide

MinRK benjaminrk at gmail.com
Wed Sep 14 17:33:50 CEST 2011


On Wed, Sep 14, 2011 at 08:20, Simone Deponti <simone.deponti at abstract.it>wrote:

> Hello all,
>
> I noticed a problem in the following python example
> (http://zguide.zeromq.org/py:taskvent).
>
> In fact, by looking at the C example, I see that the first send (the one
> that signals the start of the batch) is done directly to the sink and
> not to the workers (which makes sense), while in the python example it
> is sent to the workers (which doesn't quite make sense).
>
> I know it's just a minor oversight but it might confuse python
> developers that are approaching zeromq (such as me) a bit. Okay, it did
> confuse _me_ a bit, but I'm expecting others might be as well.
>
> A simple patch might be http://pastebin.com/GYzRcENc
>
> In addition, the first examples use "context.Socket" instead of the
> correct (as of pyzmq 2.1.9) "context.socket".
>

This would just be a typo, context.Socket has never existed, as far as I
know.

-MinRK


>
> Cheers,
>
> Simone
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110914/abc6b467/attachment.htm>


More information about the zeromq-dev mailing list