[pypy-svn] r64202 - pypy/trunk/pypy/translator/test

antocuni at codespeak.net antocuni at codespeak.net
Fri Apr 17 00:17:13 CEST 2009


Author: antocuni
Date: Fri Apr 17 00:17:11 2009
New Revision: 64202

Added:
   pypy/trunk/pypy/translator/test/rpystone_newstyle.py
      - copied, changed from r64156, pypy/trunk/pypy/translator/test/rpystone.py
Log:
add a version of rpystone that uses new style classes, as they are much faster in jython


Copied: pypy/trunk/pypy/translator/test/rpystone_newstyle.py (from r64156, pypy/trunk/pypy/translator/test/rpystone.py)
==============================================================================
--- pypy/trunk/pypy/translator/test/rpystone.py	(original)
+++ pypy/trunk/pypy/translator/test/rpystone_newstyle.py	Fri Apr 17 00:17:11 2009
@@ -35,7 +35,7 @@
 LOOPS = 50000
 
 # use a global instance instead of globals
-class G:pass
+class G(object):pass
 g = G()
 
 import sys
@@ -46,7 +46,7 @@
 
 [Ident1, Ident2, Ident3, Ident4, Ident5] = range(1, 6)
 
-class Record:
+class Record(object):
 
     def __init__(self, PtrComp = None, Discr = 0, EnumComp = 0,
                        IntComp = 0, StringComp = ""):



More information about the Pypy-commit mailing list