[pypy-svn] r41246 - in pypy/dist/pypy: config module/readline
arigo at codespeak.net
arigo at codespeak.net
Sat Mar 24 18:24:32 CET 2007
Author: arigo
Date: Sat Mar 24 18:24:29 2007
New Revision: 41246
Modified:
pypy/dist/pypy/config/pypyoption.py
pypy/dist/pypy/module/readline/__init__.py
Log:
Populate the readline module with stubs that just issue a warning.
Enable it by default in --allworkingmodules, to get the nice
line editing features for pypy-c.
Modified: pypy/dist/pypy/config/pypyoption.py
==============================================================================
--- pypy/dist/pypy/config/pypyoption.py (original)
+++ pypy/dist/pypy/config/pypyoption.py Sat Mar 24 18:24:29 2007
@@ -24,7 +24,7 @@
working_modules = default_modules.copy()
working_modules.update(dict.fromkeys(
["rsocket", "unicodedata", "mmap", "fcntl", "rctime", "select",
- "crypt", "signal", "dyngram",
+ "crypt", "signal", "dyngram", "readline",
]
))
Modified: pypy/dist/pypy/module/readline/__init__.py
==============================================================================
--- pypy/dist/pypy/module/readline/__init__.py (original)
+++ pypy/dist/pypy/module/readline/__init__.py Sat Mar 24 18:24:29 2007
@@ -19,4 +19,27 @@
}
appleveldefs = {
+ 'parse_and_bind': 'app_stub.stub',
+ 'get_line_buffer': 'app_stub.stub_str',
+ 'insert_text': 'app_stub.stub',
+ 'read_init_file': 'app_stub.stub',
+ 'read_history_file': 'app_stub.stub',
+ 'write_history_file': 'app_stub.stub',
+ 'clear_history': 'app_stub.stub',
+ 'get_history_length': 'app_stub.stub_int',
+ 'set_history_length': 'app_stub.stub',
+ 'get_current_history_length': 'app_stub.stub_int',
+ 'get_history_item': 'app_stub.stub_str',
+ 'remove_history_item': 'app_stub.stub',
+ 'replace_history_item': 'app_stub.stub',
+ 'redisplay': 'app_stub.stub',
+ 'set_startup_hook': 'app_stub.stub',
+ 'set_pre_input_hook': 'app_stub.stub',
+ 'set_completer': 'app_stub.stub',
+ 'get_completer': 'app_stub.stub',
+ 'get_begidx': 'app_stub.stub_int',
+ 'get_endidx': 'app_stub.stub_int',
+ 'set_completer_delims': 'app_stub.stub',
+ 'get_completer_delims': 'app_stub.stub_str',
+ 'add_history': 'app_stub.stub',
}
More information about the Pypy-commit
mailing list