This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: whatsnew/3.3: error in example about nntplib
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, ezio.melotti, july, python-dev
Priority: normal Keywords: patch

Created on 2011-07-13 08:13 by july, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
whatsnew.3.3.nntplib.example.diff july, 2011-07-13 08:13 review
library.nntplib.rst.diff july, 2011-07-25 19:53 review
Messages (6)
msg140228 - (view) Author: July Tikhonov (july) * Date: 2011-07-13 08:13
>>> 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:
msg140236 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-07-13 08:44
New changeset e0cd35660ae9 by Ezio Melotti in branch 'default':
#12547: Fix import and output in nntplib example. Initial patch by July Tikhonov.
http://hg.python.org/cpython/rev/e0cd35660ae9
msg140237 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-07-13 08:48
Fixed, thanks for the report and the patch!
msg141119 - (view) Author: July Tikhonov (july) * Date: 2011-07-25 19:53
The very same example (with the same error) can be found in
Doc/library/nntplib.rst
msg141136 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-07-26 06:38
New changeset 95c34bce986c by Ezio Melotti in branch 'default':
#12547: Fix example in nntplib doc. Patch by July Tikhonov.
http://hg.python.org/cpython/rev/95c34bce986c
msg141137 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-07-26 06:38
Fixed, thanks again for the patch!
History
Date User Action Args
2022-04-11 14:57:19adminsetgithub: 56756
2011-07-26 06:38:58ezio.melottisetstatus: open -> closed
resolution: fixed
messages: + msg141137
2011-07-26 06:38:12python-devsetmessages: + msg141136
2011-07-25 19:53:25julysetstatus: closed -> open
files: + library.nntplib.rst.diff
resolution: fixed -> (no value)
messages: + msg141119
2011-07-13 08:48:34ezio.melottisetstatus: open -> closed

nosy: + ezio.melotti
messages: + msg140237

resolution: fixed
stage: resolved
2011-07-13 08:45:00python-devsetnosy: + python-dev
messages: + msg140236
2011-07-13 08:13:30julycreate