[pypy-svn] r4982 - pypy/branch/src-newobjectmodel/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Sat Jun 5 17:49:47 CEST 2004


Author: arigo
Date: Sat Jun  5 17:49:46 2004
New Revision: 4982

Modified:
   pypy/branch/src-newobjectmodel/pypy/interpreter/interactive.py
Log:
Safer this way.


Modified: pypy/branch/src-newobjectmodel/pypy/interpreter/interactive.py
==============================================================================
--- pypy/branch/src-newobjectmodel/pypy/interpreter/interactive.py	(original)
+++ pypy/branch/src-newobjectmodel/pypy/interpreter/interactive.py	Sat Jun  5 17:49:46 2004
@@ -35,7 +35,7 @@
             print
             banner = ("Python %s on %s\n" % (sys.version, sys.platform) +
                       "*** Entering interpreter-level console ***")
-            code.interact(banner=banner, local=self.__dict__)
+            code.interact(banner=banner, local=self.__dict__.copy())
             print '*** Leaving interpreter-level console ***'
             raise
 



More information about the Pypy-commit mailing list