[pypy-svn] r29149 - pypy/dist/pypy/translator/js
fijal at codespeak.net
fijal at codespeak.net
Thu Jun 22 18:31:57 CEST 2006
Author: fijal
Date: Thu Jun 22 18:31:56 2006
New Revision: 29149
Modified:
pypy/dist/pypy/translator/js/database.py
Log:
Added __ne__ reflection.
Modified: pypy/dist/pypy/translator/js/database.py
==============================================================================
--- pypy/dist/pypy/translator/js/database.py (original)
+++ pypy/dist/pypy/translator/js/database.py Thu Jun 22 18:31:56 2006
@@ -168,7 +168,7 @@
ilasm.store_void()
const.init_fields(ilasm, self.const_var, name)
#ilasm.field(name, const.get_type(), static=True)
-
+
def load_const(self, type_, value, ilasm):
if self.is_primitive(type_):
ilasm.load_const(self.cts.primitive_repr(type_, value))
@@ -189,6 +189,9 @@
self.cts = db.type_system_class(db)
self.depends = set()
+ def __ne__(self, other):
+ return not (self == other)
+
def make(db, const):
if isinstance(const, ootype._view):
static_type = const._TYPE
More information about the Pypy-commit
mailing list