[docs] [issue31294] ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working

Pablo 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
components: Documentation
messages: 300960
nosy: docs at python, pablogsal
priority: normal
pull_requests: 3273
severity: normal
status: open
title: ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31294>
_______________________________________


More information about the docs mailing list