[New-bugs-announce] [issue36625] Obsolete comments in docstrings in fractions module

Jakub Moliński report at bugs.python.org
Sat Apr 13 18:58:43 EDT 2019


New submission from Jakub Moliński <jakub at molinski.dev>:

3 docstrings in fractions.Fraction contain comments referring to python 3.0. 

def __floor__(a):
    """Will be math.floor(a) in 3.0."""

def __ceil__(a):
    """Will be math.ceil(a) in 3.0."""

def __round__(self, ndigits=None):
    """Will be round(self, ndigits) in 3.0.

    Rounds half toward even.
    """


To make it consistent with other docstrings in the module these should be changed to """math.floor(a)""", """math.ceil(a)""", and 
    """round(self, ndigits)

    Rounds half toward even.
    """

----------
assignee: docs at python
components: Documentation
messages: 340174
nosy: docs at python, jakub.molinski
priority: normal
severity: normal
status: open
title: Obsolete comments in docstrings in fractions module
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36625>
_______________________________________


More information about the New-bugs-announce mailing list