Anonymous avatar Anonymous committed 09d8162

Handling the return type of raw_input builtin

Comments (0)

Files changed (2)


 Small Stories
-* Handling `raw_input` builtin function
+- Handling `raw_input` builtin function
 * Refactor `rope.base.refactor.importutils`
 * Not holding current_folder in `FromImport`?
 * Move method up/down


         holding = _infer_sequence_for_pyname(passed)
     return Iterator(holding)
+def _input_function(args):
+    return get_str()
 builtins = {
     'list': BuiltinName(get_list_type()),
     'enumerate': BuiltinName(BuiltinFunction(function=_enumerate_function, builtin=enumerate)),
     'object': BuiltinName(BuiltinObject()),
     'type': BuiltinName(BuiltinType()),
-    'iter': BuiltinName(BuiltinFunction(function=_iter_function, builtin=iter))}
+    'iter': BuiltinName(BuiltinFunction(function=_iter_function, builtin=iter)),
+    'raw_input': BuiltinName(BuiltinFunction(function=_input_function, builtin=raw_input))}
 for name in dir(__builtin__):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.