Author: Alex Gaynor <alex.gay...@gmail.com>
Branch: kill-someobject
Changeset: r57871:700c1b33a2f5
Date: 2012-10-07 23:46 +0200
http://bitbucket.org/pypy/pypy/changeset/700c1b33a2f5/

Log:    make this a new type

diff --git a/pypy/rpython/lltypesystem/opimpl.py 
b/pypy/rpython/lltypesystem/opimpl.py
--- a/pypy/rpython/lltypesystem/opimpl.py
+++ b/pypy/rpython/lltypesystem/opimpl.py
@@ -1,8 +1,6 @@
-import sys
-import math
 from pypy.tool.sourcetools import func_with_new_name
 from pypy.rpython.lltypesystem import lltype, llmemory
-from pypy.rpython.lltypesystem.lloperation import opimpls
+from pypy.rpython.lltypesystem.lloperation import FunctionByName
 from pypy.rlib import debug
 from pypy.rlib.rarithmetic import is_valid_int
 
@@ -49,11 +47,11 @@
 def get_primitive_op_src(fullopname):
     assert '_' in fullopname, "%s: not a primitive op" % (fullopname,)
     typname, opname = fullopname.split('_', 1)
-    if opname not in opimpls and (opname + '_') in opimpls:
-        func = opimpls[opname + '_']   # or_, and_
+    if opname not in FunctionByName and (opname + '_') in FunctionByName:
+        func = FunctionByName[opname + '_']   # or_, and_
     else:
-        assert opname in opimpls, "%s: not a primitive op" % (fullopname,)
-        func = opimpls[opname]
+        assert opname in FunctionByName, "%s: not a primitive op" % 
(fullopname,)
+        func = FunctionByName[opname]
 
     if typname == 'char':
         # char_lt, char_eq, ...
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to