[pypy-dev] Where is `float.is_integer`?

Ram Rachum ram at rachum.com
Sat Oct 29 01:24:28 CEST 2011

Guys, am I missing something?


*Python 2.7.2* (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
on win32Type "help", "copyright", "credits" or "license" for more
>>> x = 4.5
>>> x.is_integer()


Python 2.7.1 (080f42d5c4b4, Aug 23 2011, 11:41:11)
[*PyPy 1.6.0* with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``- It's hard to say exactly
constitutes research in the computer world, but as a first approximation,
software that doesn't have users.''
>>>> x = 4.5
>>>> x.is_integer()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
AttributeError: 'float' object has no attribute 'is_integer'

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20111029/9f5f07ea/attachment.html>

More information about the pypy-dev mailing list