I think you are right. Have you tried removing index().

Rg,

Arnaud

On November 3, 2015 5:42:17 AM GMT+01:00, Johan Philips 
<johan.phil...@kuleuven.be> wrote:
>Hi guys
>
>I am trying to use the Zpoller class from the python binding together 
>with the zyre binding. Following minimal example fails for me:
>
> >>> from czmq import Zpoller
> >>> from zyre import Zyre
> >>> node = Zyre("test")
> >>> node.start()
>0
> >>> poller = Zpoller(node.socket(), None)
>Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/home/jphilips/workspace/czmq/bindings/python/czmq.py", line 
>1782, in __init__
>   self._as_parameter_ = lib.zpoller_new(args[0], *args[index()-1:]) # 
>Creation of new raw type
>NameError: global name 'index' is not defined
> >>>
>
>There seems to be something strange going on in this zpoller_new call. 
>Shouldn't it be *args[-1:], i.e. without the index()?
>
>Or how does one use this Zpoller, because I am confused at the moment
>:-)
>
>Thanks!
>
>Johan
>_______________________________________________
>zeromq-dev mailing list
>zeromq-dev@lists.zeromq.org
>http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Send from my feature bloated phone.
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to