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.

Author ralph.corderoy
Recipients docs@python, ralph.corderoy
Date 2010-10-19.11:40:37
SpamBayes Score 0.016981876
Marked as misclassified No
Message-id <1287488440.57.0.0400472595143.issue10145@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-10-19 11:40:40ralph.corderoysetrecipients: + ralph.corderoy, docs@python
2010-10-19 11:40:40ralph.corderoysetmessageid: <1287488440.57.0.0400472595143.issue10145@psf.upfronthosting.co.za>
2010-10-19 11:40:38ralph.corderoylinkissue10145 messages
2010-10-19 11:40:37ralph.corderoycreate