![](https://secure.gravatar.com/avatar/d24c45635a5171615a7cdb936f36daad.jpg?s=120&d=mm&r=g)
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 information.
x = 4.5 x.is_integer() False
----------------------------- 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 what constitutes research in the computer world, but as a first approximation, it's 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'
-----------------------------
![](https://secure.gravatar.com/avatar/edcdfd5affb524e0f88ec1a00ed3fe5d.jpg?s=120&d=mm&r=g)
On Fri, Oct 28, 2011 at 7:24 PM, Ram Rachum <ram@rachum.com> wrote:
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 information.
x = 4.5 x.is_integer() False
-----------------------------
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 what constitutes research in the computer world, but as a first approximation, it's 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'
-----------------------------
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev
Nope, it appears we're missing. In our defense, CPython has *zero* tests for it, so I'd just as soon assume it doesn't work at all... Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero
![](https://secure.gravatar.com/avatar/d24c45635a5171615a7cdb936f36daad.jpg?s=120&d=mm&r=g)
On Sat, Oct 29, 2011 at 1:27 AM, Alex Gaynor <alex.gaynor@gmail.com> wrote:
On Fri, Oct 28, 2011 at 7:24 PM, Ram Rachum <ram@rachum.com> wrote:
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 information.
x = 4.5 x.is_integer() False
-----------------------------
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 what constitutes research in the computer world, but as a first approximation, it's 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'
-----------------------------
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev
Nope, it appears we're missing. In our defense, CPython has *zero* tests for it, so I'd just as soon assume it doesn't work at all...
Alex
I guess a script could be made that would go over *all* the classes in CPython, see all their methods, compare to those of PyPy, and point out which ones we forgot. Ram.
![](https://secure.gravatar.com/avatar/23f389411056ead7bc39c8e71fa26c5a.jpg?s=120&d=mm&r=g)
Isn't the solution to submit a bug to CPython noting the hole in their test suite? Eli
![](https://secure.gravatar.com/avatar/607cfd4a5b41fe6c886c978128b9c03e.jpg?s=120&d=mm&r=g)
On 01:03 am, ram@rachum.com wrote:
I guess a script could be made that would go over *all* the classes in CPython, see all their methods, compare to those of PyPy, and point out which ones we forgot.
One could also examine a test coverage report from CPython and add unit tests for all of the uncovered functionality. ;) Jean-Paul
participants (4)
-
Alex Gaynor
-
Eli Stevens (Gmail)
-
exarkun@twistedmatrix.com
-
Ram Rachum