This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: float.is_integer is undocumented
Type: Stage: resolved
Components: Documentation Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, mark.dickinson, r.david.murray, ralph.corderoy
Priority: normal Keywords:

Created on 2010-10-19 11:40 by ralph.corderoy, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg119133 - (view) Author: Ralph Corderoy (ralph.corderoy) Date: 2010-10-19 11:40
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.
msg119143 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-10-19 16:32
Woops, I didn't meant to unassign docs.
msg120676 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2010-11-07 12:53
Fixed in r86293, r86394, r86295.
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54354
2010-11-07 12:53:32mark.dickinsonsetstatus: open -> closed
resolution: fixed
messages: + msg120676

stage: needs patch -> resolved
2010-10-19 16:32:00r.david.murraysetassignee: docs@python

messages: + msg119143
nosy: + r.david.murray
2010-10-19 16:19:00eric.araujosettitle: (4.2).is_integer() is undocumented. -> float.is_integer is undocumented
stage: needs patch
versions: - Python 2.6, Python 3.3
2010-10-19 12:53:27r.david.murraysetassignee: docs@python -> (no value)

nosy: + mark.dickinson
2010-10-19 11:40:38ralph.corderoycreate