[pypy-svn] r4845 - pypy/branch/src-newobjectmodel/pypy/objspace

pedronis at codespeak.net pedronis at codespeak.net
Thu Jun 3 09:50:12 CEST 2004


Author: pedronis
Date: Thu Jun  3 09:50:12 2004
New Revision: 4845

Modified:
   pypy/branch/src-newobjectmodel/pypy/objspace/descroperation.py
Log:

reduce imports



Modified: pypy/branch/src-newobjectmodel/pypy/objspace/descroperation.py
==============================================================================
--- pypy/branch/src-newobjectmodel/pypy/objspace/descroperation.py	(original)
+++ pypy/branch/src-newobjectmodel/pypy/objspace/descroperation.py	Thu Jun  3 09:50:12 2004
@@ -1,5 +1,5 @@
 from pypy.interpreter.error import OperationError
-from pypy.interpreter.baseobjspace import *
+from pypy.interpreter.baseobjspace import ObjSpace
 
 class DescrOperation:
 
@@ -89,9 +89,11 @@
         return space.get_and_call_function(w_descr,w_obj,w_key)
 
 
-    # special cases
+    # not_ has a default implementation
+
+    # xxx round, not_ 
+
 
-    # xxx what about not_,round,ord
 
 # helpers
 
@@ -227,7 +229,9 @@
             _impl_maker = _make_unaryop_impl    
         if _impl_maker:
             setattr(DescrOperation,_name,_impl_maker(_specialnames))
-        elif _name not in ['id','type','issubtype']:
+        elif _name not in ['id','type','issubtype',
+                           # not really to be defined in DescrOperation
+                           'ord','not_','round']:
             print "missing %s" % _name
             
             



More information about the Pypy-commit mailing list