Re: Starting value with raw_input

2006-04-18 Thread Steve Bergman
Kinda ugly, and I lifted it from an old post, but this should work: import readline readline.set_startup_hook(lambda: readline.insert_text('supercalifragilisticexpialidocious')) try: new_value = raw_input() finally: readline.set_startup_hook(None) -- http://mail.python.org/mailman/listinfo/p

Starting value with raw_input

2006-04-18 Thread David Hirschfield
Does the raw_input built-in function allow giving an initial value that the user can edit? Perhaps by using the readline module? I want to do something so that I can provide the user a default value they can edit as they wish at the prompt: result = raw_input("Enter value: ") Somehow outpu