[pypy-svn] r45828 - pypy/branch/pypy-more-rtti-inprogress/module/posix
arigo at codespeak.net
arigo at codespeak.net
Fri Aug 17 20:12:49 CEST 2007
Author: arigo
Date: Fri Aug 17 20:12:49 2007
New Revision: 45828
Modified:
pypy/branch/pypy-more-rtti-inprogress/module/posix/interp_posix.py
Log:
don't capture the environment in the translated pypy
Modified: pypy/branch/pypy-more-rtti-inprogress/module/posix/interp_posix.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/module/posix/interp_posix.py (original)
+++ pypy/branch/pypy-more-rtti-inprogress/module/posix/interp_posix.py Fri Aug 17 20:12:49 2007
@@ -268,14 +268,20 @@
class State:
def __init__(self, space):
+ self.space = space
self.w_environ = space.newdict()
def startup(self, space):
_convertenviron(space, self.w_environ)
+ def _freeze_(self):
+ # don't capture the environment in the translated pypy
+ self.space.call_method(self.w_environ, 'clear')
+ return True
def get(space):
return space.fromcache(State)
def _convertenviron(space, w_env):
+ space.call_method(w_env, 'clear')
for key, value in os.environ.items():
space.setitem(w_env, space.wrap(key), space.wrap(value))
More information about the Pypy-commit
mailing list