[pypy-svn] r5428 - pypy/trunk/src/pypy/module

sanxiyn at codespeak.net sanxiyn at codespeak.net
Sat Jul 3 15:05:39 CEST 2004


Author: sanxiyn
Date: Sat Jul  3 15:05:38 2004
New Revision: 5428

Modified:
   pypy/trunk/src/pypy/module/sysinterp.py
   pypy/trunk/src/pypy/module/sysmodule.py
Log:
Trying to run "import encodings". Doesn't work yet.

(Built-in function _codecs.register refuses to accept PyPy-wrapped
function.)


Modified: pypy/trunk/src/pypy/module/sysinterp.py
==============================================================================
--- pypy/trunk/src/pypy/module/sysinterp.py	(original)
+++ pypy/trunk/src/pypy/module/sysinterp.py	Sat Jul  3 15:05:38 2004
@@ -38,7 +38,7 @@
 # The following built-in modules are not written in PyPy, so we
 # steal them from Python.
 for fn in ['posix', 'nt', 'os2', 'mac', 'ce', 'riscos',
-           'itertools', 'math', 
+           'itertools', 'math', '_codecs',
            '_random', '_sre', 'time', '_socket', 'errno',
            'marshal', 'struct', 'binascii', 'parser']:
     if fn not in builtin_modules:
@@ -69,6 +69,7 @@
 w_hexversion = space.wrap(cpy_sys.hexversion)
 w_platform   = space.wrap(cpy_sys.platform)
 w_maxint     = space.wrap(cpy_sys.maxint)
+w_byteorder  = space.wrap(cpy_sys.byteorder)
 
 w_stdin  = space.wrap(cpy_sys.stdin)
 w_stdout = space.wrap(cpy_sys.stdout)

Modified: pypy/trunk/src/pypy/module/sysmodule.py
==============================================================================
--- pypy/trunk/src/pypy/module/sysmodule.py	(original)
+++ pypy/trunk/src/pypy/module/sysmodule.py	Sat Jul  3 15:05:38 2004
@@ -11,7 +11,7 @@
 
 # Objects from interpreter-level
 from __interplevel__ import stdin, stdout, stderr, maxint
-from __interplevel__ import hexversion, platform
+from __interplevel__ import hexversion, platform, byteorder
 from __interplevel__ import pypy_objspaceclass
 
 # Functions from interpreter-level



More information about the Pypy-commit mailing list