diff -r 6a95820b9607 Modules/readline.c --- a/Modules/readline.c Sun Dec 18 20:20:17 2011 +0100 +++ b/Modules/readline.c Sun Dec 18 22:34:54 2011 -0500 @@ -865,6 +865,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 @@ -875,7 +876,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");