[New-bugs-announce] [issue2801] Py30a5 float.is_integer() raises ValueError
Mark Summerfield
report at bugs.python.org
Fri May 9 13:28:51 CEST 2008
New submission from Mark Summerfield <mark at qtrac.eu>:
The new method float.is_integer() introduced in Py30a5 behaves unexpectedly:
>>> x = 5.0
>>> x.as_integer_ratio()
(5, 1)
>>> x.is_integer()
Traceback (most recent call last):
File "<pyshell#20>", line 1, in <module>
x.is_integer()
ValueError: (11, 'Resource temporarily unavailable')
I was expecting True.
----------
messages: 66465
nosy: mark
severity: normal
status: open
title: Py30a5 float.is_integer() raises ValueError
type: behavior
versions: Python 3.0
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2801>
__________________________________
More information about the New-bugs-announce
mailing list