[pypy-svn] r34485 - pypy/dist/pypy/rlib
fijal at codespeak.net
fijal at codespeak.net
Sat Nov 11 14:16:52 CET 2006
Author: fijal
Date: Sat Nov 11 14:16:51 2006
New Revision: 34485
Modified:
pypy/dist/pypy/rlib/nonconst.py
Log:
Added support for testing it on top of CPython.
Modified: pypy/dist/pypy/rlib/nonconst.py
==============================================================================
--- pypy/dist/pypy/rlib/nonconst.py (original)
+++ pypy/dist/pypy/rlib/nonconst.py Sat Nov 11 14:16:51 2006
@@ -9,7 +9,13 @@
class NonConstant(object):
def __init__(self, _constant):
- self.constant = _constant
+ self.__dict__['constant'] = _constant
+
+ def __getattr__(self, attr):
+ return getattr(self.__dict__['constant'], attr)
+
+ def __setattr__(self, attr, value):
+ setattr(self.__dict__['constant'], attr, value)
class EntryNonConstant(ExtRegistryEntry):
_about_ = NonConstant
More information about the Pypy-commit
mailing list