[docs] [issue12547] whatsnew/3.3: error in example about nntplib

July Tikhonov report at bugs.python.org
Wed Jul 13 10:13:31 CEST 2011


New submission from July Tikhonov <july.tikh at gmail.com>:

>>> 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:

----------
assignee: docs at python
components: Documentation
files: whatsnew.3.3.nntplib.example.diff
keywords: patch
messages: 140228
nosy: docs at python, july
priority: normal
severity: normal
status: open
title: whatsnew/3.3: error in example about nntplib
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file22638/whatsnew.3.3.nntplib.example.diff

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


More information about the docs mailing list