Issue 19069: Built-in float docstrings are not PEP-8 compatible (original) (raw)

Issue19069

Created on 2013-09-22 07:18 by marco.buttu, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
floatobject.patch marco.buttu,2013-09-22 07:18 review
Messages (4)
msg198246 - (view) Author: Marco Buttu (marco.buttu) * Date: 2013-09-22 07:18
As reported in the title: >>> float.as_integer_ratio.__doc__.splitlines()[2] 'Returns a pair of integers, whose ratio is exactly equal to the original' >>> float.as_integer_ratio.__doc__.splitlines()[4] 'Raises OverflowError on infinities and a ValueError on NaNs.' >>> float.conjugate.__doc__ 'Returns self, the complex conjugate of any float.' >>> float.is_integer.__doc__ 'Returns True if the float is an integer.' >>> float.__setformat__.__doc__.splitlines()[-2] 'Overrides the automatic determination of C-level floating point type.' ... They should have been 'Return...', 'Raise...' and 'Override...' Patch is attached
msg198504 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2013-09-28 04:35
Please don't flood the tracker with these individual reports. Present a single consolidated patch in Issue 19069.
msg199008 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-05 21:47
New changeset ca8e75190402 by Ezio Melotti in branch '2.7': #19069: use imperative mood in float object docstrings. Patch by Marco Buttu. http://hg.python.org/cpython/rev/ca8e75190402 New changeset 563074ace473 by Ezio Melotti in branch '3.3': #19069: use imperative mood in float object docstrings. Patch by Marco Buttu. http://hg.python.org/cpython/rev/563074ace473 New changeset 63a10c942b50 by Ezio Melotti in branch 'default': #19069: merge with 3.3. http://hg.python.org/cpython/rev/63a10c942b50
msg199009 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-10-05 21:48
Fixed, thanks for the patch!
History
Date User Action Args
2022-04-11 14:57:51 admin set github: 63269
2013-10-05 21:48:40 ezio.melotti set assignee: docs@python -> ezio.melottiversions: + Python 2.7, Python 3.4, - Python 3.2nosy: + ezio.melottimessages: + resolution: duplicate -> fixedstage: resolved
2013-10-05 21:47:26 python-dev set nosy: + python-devmessages: +
2013-09-28 20:37:55 terry.reedy set versions: - Python 3.1
2013-09-28 04:35:29 rhettinger set status: open -> closednosy: + rhettingermessages: + resolution: duplicate
2013-09-28 03:46:41 tshepang set nosy: + tshepang
2013-09-22 07🔞10 marco.buttu create