[pypy-svn] r65420 - pypy/branch/tagged-pointers-framework/pypy/lang/prolog/interpreter
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue May 26 15:10:35 CEST 2009
Author: cfbolz
Date: Tue May 26 15:10:34 2009
New Revision: 65420
Modified:
pypy/branch/tagged-pointers-framework/pypy/lang/prolog/interpreter/term.py
Log:
make it possible to use tagged pointers in the prolog implementation.
Modified: pypy/branch/tagged-pointers-framework/pypy/lang/prolog/interpreter/term.py
==============================================================================
--- pypy/branch/tagged-pointers-framework/pypy/lang/prolog/interpreter/term.py (original)
+++ pypy/branch/tagged-pointers-framework/pypy/lang/prolog/interpreter/term.py Tue May 26 15:10:34 2009
@@ -25,10 +25,6 @@
__slots__ = ()
_immutable_ = True
- def __init__(self):
- raise NotImplementedError("abstract base class")
- return self
-
def getvalue(self, heap):
return self
@@ -269,12 +265,11 @@
error.throw_type_error("evaluable", self.get_prolog_signature())
-class Number(NonVar):
+class Number(NonVar, UnboxedValue):
TAG = tag()
STANDARD_ORDER = 2
_immutable_ = True
- def __init__(self, num):
- self.num = num
+ __slots__ = ("num", )
@specialize.arg(3)
def basic_unify(self, other, heap, occurs_check=False):
More information about the Pypy-commit
mailing list