[pypy-svn] r11889 - pypy/dist/lib-python/modified-2.3.4

arigo at codespeak.net arigo at codespeak.net
Tue May 3 21:12:07 CEST 2005


Author: arigo
Date: Tue May  3 21:12:06 2005
New Revision: 11889

Added:
   pypy/dist/lib-python/modified-2.3.4/types.py
      - copied, changed from r11887, pypy/dist/lib-python/2.3.4/types.py
Log:
Copied from 2.3.4, changed only ClassType and InstanceType.


Copied: pypy/dist/lib-python/modified-2.3.4/types.py (from r11887, pypy/dist/lib-python/2.3.4/types.py)
==============================================================================
--- pypy/dist/lib-python/2.3.4/types.py	(original)
+++ pypy/dist/lib-python/modified-2.3.4/types.py	Tue May  3 21:12:06 2005
@@ -55,10 +55,10 @@
 
 class _C:
     def _m(self): pass
-ClassType = type(_C)
+ClassType = _classobj                   # PyPy-specific, from __builtin__
 UnboundMethodType = type(_C._m)         # Same as MethodType
 _x = _C()
-InstanceType = type(_x)
+InstanceType = _instance                # PyPy-specific, from __builtin__
 MethodType = type(_x._m)
 
 BuiltinFunctionType = type(len)



More information about the Pypy-commit mailing list