[New-bugs-announce] [issue7778] Typo(s) in ``itertools`` documentation reST marker

Vincent Férotin report at bugs.python.org
Mon Jan 25 14:29:02 CET 2010


New submission from Vincent Férotin <vincent.ferotin at gmail.com>:

In Python 2.6 ``itertools`` library documentation is a small typo in last paragraph (``projects/python/branches/release26-maint/Doc/library/itertools.rst``, rev. [77750]), see it at http://docs.python.org/library/itertools.html#recipes .

In the note about how optimizing recipes, ``dotproduct`` example function is not outlined as a code sample. Lines 762-763 should end with double colons (instead of simple), to mark following code as such, in reST format::

   (...) For example, the
   *dotproduct* recipe can be written as::

Note that previous ``*dotproduct*`` ref. could be marked as ``inline literal`` instead of *emphasis*, and then lines become::

   (...) For example, the
   ``dotproduct`` recipe can be written as::

----------
assignee: georg.brandl
components: Documentation
messages: 98286
nosy: fero14041, georg.brandl
severity: normal
status: open
title: Typo(s) in ``itertools`` documentation reST marker
versions: Python 2.6

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


More information about the New-bugs-announce mailing list