[pypy-svn] r35398 - pypy/dist/pypy/module/posix
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Dec 6 16:17:36 CET 2006
Author: cfbolz
Date: Wed Dec 6 16:17:35 2006
New Revision: 35398
Modified:
pypy/dist/pypy/module/posix/__init__.py
Log:
remove execve from posix when translating to an ootype backend: execve is
fundamentally lltype specific, currently.
Modified: pypy/dist/pypy/module/posix/__init__.py
==============================================================================
--- pypy/dist/pypy/module/posix/__init__.py (original)
+++ pypy/dist/pypy/module/posix/__init__.py Wed Dec 6 16:17:35 2006
@@ -77,6 +77,13 @@
#if hasattr(ctypes_posix, 'uname'):
# interpleveldefs['uname'] = 'interp_posix.uname'
+ def setup_after_space_initialization(self):
+ """NOT_RPYTHON"""
+ space = self.space
+ config = space.config
+ # XXX execve does not work under ootypesystem yet :-(
+ if config.translating and config.typesystem != "lltype":
+ space.delattr(self, space.wrap("execve"))
for constant in dir(os):
value = getattr(os, constant)
More information about the Pypy-commit
mailing list