[pypy-svn] pypy jitypes2: add enough modules so that we can use pyrepl with --translationmodules

antocuni commits-noreply at bitbucket.org
Tue Dec 28 08:44:43 CET 2010


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40248:4cb0d2338960
Date: 2010-12-28 08:48 +0100
http://bitbucket.org/pypy/pypy/changeset/4cb0d2338960/

Log:	add enough modules so that we can use pyrepl with
	--translationmodules

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -37,7 +37,10 @@
 translation_modules = default_modules.copy()
 translation_modules.update(dict.fromkeys(
     ["fcntl", "rctime", "select", "signal", "_rawffi", "zlib",
-     "struct", "md5", "cStringIO", "array", "_ffi"]))
+     "struct", "md5", "cStringIO", "array", "_ffi",
+     # the following are needed for pyrepl (and hence for the interactive prompt/pdb)
+     "termios", "_minimal_curses", "fcntl", "signal",
+     ]))
 
 working_oo_modules = default_modules.copy()
 working_oo_modules.update(dict.fromkeys(


More information about the Pypy-commit mailing list