Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working #75475

Closed
pablogsal opened this issue Aug 28, 2017 · 4 comments
Labels
3.7 (EOL) end of life docs Documentation in the Doc dir

Comments

@pablogsal
Copy link
Member

BPO 31294
Nosy @tiran, @pablogsal
PRs
  • bpo-31294: Fix ZeroMQSocketListener and ZeroMQSocketHandler examples #3229
  • [3.6] bpo-31294: Fix ZeroMQSocketListener and ZeroMQSocketHandler examples (GH-3229) #3430
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-09-08.22:27:33.661>
    created_at = <Date 2017-08-28.18:55:35.156>
    labels = ['3.7', 'docs']
    title = 'ZeroMQSocketListener and ZeroMQSocketHandler examples in the Logging Cookbook not working'
    updated_at = <Date 2017-09-08.22:27:33.658>
    user = 'https://github.com/pablogsal'

    bugs.python.org fields:

    activity = <Date 2017-09-08.22:27:33.658>
    actor = 'christian.heimes'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2017-09-08.22:27:33.661>
    closer = 'christian.heimes'
    components = ['Documentation']
    creation = <Date 2017-08-28.18:55:35.156>
    creator = 'pablogsal'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31294
    keywords = ['patch']
    message_count = 4.0
    messages = ['300960', '301629', '301641', '301745']
    nosy_count = 3.0
    nosy_names = ['christian.heimes', 'docs@python', 'pablogsal']
    pr_nums = ['3229', '3430']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue31294'
    versions = ['Python 3.6', 'Python 3.7']

    @pablogsal
    Copy link
    Member Author

    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.

    @pablogsal pablogsal added the docs Documentation in the Doc dir label Aug 28, 2017
    @tiran
    Copy link
    Member

    tiran commented Sep 7, 2017

    New changeset 586c050 by Christian Heimes (Pablo Galindo) in branch 'master':
    bpo-31294: Fix ZeroMQSocketListener and ZeroMQSocketHandler examples (bpo-3229)
    586c050

    @tiran
    Copy link
    Member

    tiran commented Sep 7, 2017

    New changeset 27ce5a1 by Christian Heimes (Miss Islington (bot)) in branch '3.6':
    [3.6] bpo-31294: Fix ZeroMQSocketListener and ZeroMQSocketHandler examples (GH-3229) (bpo-3430)
    27ce5a1

    @tiran
    Copy link
    Member

    tiran commented Sep 8, 2017

    Thanks for your contribution. Your PR has been merged into 3.6 and master, which will become Python 3.7 eventually.

    @tiran tiran added the 3.7 (EOL) end of life label Sep 8, 2017
    @tiran tiran closed this as completed Sep 8, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants