[New-bugs-announce] [issue10145] (4.2).is_integer() is undocumented.

Ralph Corderoy report at bugs.python.org
Tue Oct 19 13:40:40 CEST 2010


New submission from Ralph Corderoy <ralph-pythonbugs at inputplus.co.uk>:

floats now have an is_integer() method.  I think it was added in 2.6 around the same time as as_integer_ratio().  It has a docstring but it isn't mentioned in the documentation.  I only idled across it when reading the C source.  I'd expect to find it, for example, at

    http://docs.python.org/library/stdtypes.html?highlight=as_integer_ratio#additional-methods-on-float
    http://docs.python.org/py3k/library/stdtypes.html?highlight=as_integer_ratio#additional-methods-on-float

Can it please be added, and for Py2, mention what version it appeared in.

----------
assignee: docs at python
components: Documentation
messages: 119133
nosy: docs at python, ralph.corderoy
priority: normal
severity: normal
status: open
title: (4.2).is_integer() is undocumented.
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

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


More information about the New-bugs-announce mailing list