[issue10145] (4.2).is_integer() is undocumented.
New submission from Ralph Corderoy <ralph-pythonbugs@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#addi... http://docs.python.org/py3k/library/stdtypes.html?highlight=as_integer_ratio... Can it please be added, and for Py2, mention what version it appeared in. ---------- assignee: docs@python components: Documentation messages: 119133 nosy: docs@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@bugs.python.org> <http://bugs.python.org/issue10145> _______________________________________
Changes by R. David Murray <rdmurray@bitdance.com>: ---------- assignee: docs@python -> nosy: +mark.dickinson _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10145> _______________________________________
Changes by Éric Araujo <merwok@netwok.org>: ---------- stage: -> needs patch title: (4.2).is_integer() is undocumented. -> float.is_integer is undocumented versions: -Python 2.6, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10145> _______________________________________
R. David Murray <rdmurray@bitdance.com> added the comment: Woops, I didn't meant to unassign docs. ---------- assignee: -> docs@python nosy: +r.david.murray _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10145> _______________________________________
Mark Dickinson <dickinsm@gmail.com> added the comment: Fixed in r86293, r86394, r86295. ---------- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10145> _______________________________________
participants (4)
-
Mark Dickinson
-
R. David Murray
-
Ralph Corderoy
-
Éric Araujo