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

whatsnew/3.3: error in example about nntplib #56756

Closed
tifv mannequin opened this issue Jul 13, 2011 · 6 comments
Closed

whatsnew/3.3: error in example about nntplib #56756

tifv mannequin opened this issue Jul 13, 2011 · 6 comments
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@tifv
Copy link
Mannequin

tifv mannequin commented Jul 13, 2011

BPO 12547
Nosy @ezio-melotti, @tifv
Files
  • whatsnew.3.3.nntplib.example.diff
  • library.nntplib.rst.diff
  • 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 2011-07-26.06:38:58.021>
    created_at = <Date 2011-07-13.08:13:30.703>
    labels = ['type-bug', 'docs']
    title = 'whatsnew/3.3: error in example about nntplib'
    updated_at = <Date 2011-07-26.06:38:58.019>
    user = 'https://github.com/tifv'

    bugs.python.org fields:

    activity = <Date 2011-07-26.06:38:58.019>
    actor = 'ezio.melotti'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2011-07-26.06:38:58.021>
    closer = 'ezio.melotti'
    components = ['Documentation']
    creation = <Date 2011-07-13.08:13:30.703>
    creator = 'july'
    dependencies = []
    files = ['22638', '22758']
    hgrepos = []
    issue_num = 12547
    keywords = ['patch']
    message_count = 6.0
    messages = ['140228', '140236', '140237', '141119', '141136', '141137']
    nosy_count = 4.0
    nosy_names = ['ezio.melotti', 'july', 'docs@python', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue12547'
    versions = ['Python 3.3']

    @tifv
    Copy link
    Mannequin Author

    tifv mannequin commented Jul 13, 2011

    >> from nntplib import NNTP
    >> with nntplib.NNTP('news.gmane.org') as n:

    will not work. It should be

    >> import nntplib
    >> with nntplib.NNTP('news.gmane.org') as n:

    or

    >> from nntplib import NNTP
    >> with NNTP('news.gmane.org') as n:

    @tifv tifv mannequin assigned docspython Jul 13, 2011
    @tifv tifv mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error labels Jul 13, 2011
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 13, 2011

    New changeset e0cd35660ae9 by Ezio Melotti in branch 'default':
    bpo-12547: Fix import and output in nntplib example. Initial patch by July Tikhonov.
    http://hg.python.org/cpython/rev/e0cd35660ae9

    @ezio-melotti
    Copy link
    Member

    Fixed, thanks for the report and the patch!

    @tifv
    Copy link
    Mannequin Author

    tifv mannequin commented Jul 25, 2011

    The very same example (with the same error) can be found in
    Doc/library/nntplib.rst

    @tifv tifv mannequin reopened this Jul 25, 2011
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 26, 2011

    New changeset 95c34bce986c by Ezio Melotti in branch 'default':
    bpo-12547: Fix example in nntplib doc. Patch by July Tikhonov.
    http://hg.python.org/cpython/rev/95c34bce986c

    @ezio-melotti
    Copy link
    Member

    Fixed, thanks again for the patch!

    @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
    docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant