[New-bugs-announce] [issue19067] Built-in range docstrings are not PEP-8 compatible

Marco Buttu report at bugs.python.org
Sun Sep 22 09:01:15 CEST 2013


New submission from Marco Buttu:

The range documentation is not PEP-8 compatible:

>>> range.__doc__.splitlines()[-1]
'Returns a virtual sequence of numbers from start to stop by step.'
>>> range.__reversed__.__doc__
'Returns a reverse iterator.'
>>> range.index.__doc__.splitlines()[-1]
'Raises ValueError if the value is not present.'

They should have been 'Return...' and 'Raise...'. Patch is attached

----------
assignee: docs at python
components: Documentation
files: rangeobject.patch
keywords: patch
messages: 198244
nosy: docs at python, marco.buttu
priority: normal
severity: normal
status: open
title: Built-in range docstrings are not PEP-8 compatible
type: enhancement
versions: Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file31838/rangeobject.patch

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


More information about the New-bugs-announce mailing list