diff -r 56731ccf2e86 Modules/readline.c --- a/Modules/readline.c Sun Dec 18 22:01:40 2011 +0000 +++ b/Modules/readline.c Sun Dec 18 22:49:16 2011 -0500 @@ -891,6 +891,7 @@ Py_FatalError("not enough memory to save locale"); #endif + rl_readline_name = "python"; #ifdef __APPLE__ /* the libedit readline emulation resets key bindings etc * when calling rl_initialize. So call it upfront @@ -901,7 +902,6 @@ using_history(); - rl_readline_name = "python"; #if defined(PYOS_OS2) && defined(PYCC_GCC) /* Allow $if term= in .inputrc to work */ rl_terminal_name = getenv("TERM");