[docs] [issue31294] ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working
report at bugs.python.org
Mon Aug 28 14:55:35 EDT 2017
New submission from Pablo:
There are two documentation issues regarding the ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook:
The first issue is that in the 'init' method for the 'ZeroMQSocketListener' the base class 'init' is never called and therefore the internal variables are not correctly initialized. This leads to an empty 'handlers' attribute and a undefined 'queue' attribute.
The second issue is that zmq.Socket.send and zmq.Socket.setsockopt only admits bytecode variables and therefore it fails in Python3 when using plain strings.
assignee: docs at python
nosy: docs at python, pablogsal
title: ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working
Python tracker <report at bugs.python.org>
More information about the docs