How can I extend raw_input to provide user w/ default input string?

Skip Montanaro skip at pobox.com
Thu Jun 7 13:38:49 EDT 2001


    >> However, I was thinking about presenting the user with a default
    >> input and give him/her the ability to edit it. Maybe I should think
    >> about using Tkinter if this is impossible to do using a console
    >> interface.

    Alex> You might want to check out the readline module.

I don't think that works.  I asked about it a few months ago and got a
negatory response from Guido.  (Not that it wouldn't be useful, just that
the readline module doesn't support it.)

There have been a couple packages announced here in the past month or so
that are readline replacements.  One of them could probably be coerced into
providing default values for console inputs.

-- 
Skip Montanaro (skip at pobox.com)
(847)971-7098




More information about the Python-list mailing list