readline: edit-and-execute-command

josh josh-python at yucs.org
Mon Jul 4 20:12:08 EDT 2005


anybody know why "edit-and-execute-command" doesn't work in python's readline?  
it doesn't even show up in a dump of readline functions:                        
                                                                                
$ cat fc_test                                                                   
C-p: dump-functions                                                             
C-e: edit-and-execute-command                                                   
$                                                                               
$ python                                                                        
Python 2.4 (#1, Jan 14 2005, 14:29:23)                                          
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2                          
Type "help", "copyright", "credits" or "license" for more information.          
--- import readline                                                             
--- readline.read_init_file('fc_test')                                          
                                                                                
if you hit control p, and you won't see 'edit-and-execute-command'              
listed at all, though you will when you run "INPUTRC=fc_test bash"

thanks in advance




More information about the Python-list mailing list