passing string for editing in input()

Chris Rebert clp2 at rebertia.com
Tue Feb 2 08:29:10 EST 2010


On Tue, Feb 2, 2010 at 5:24 AM, mk <mrkafk at gmail.com> wrote:
> Hello,
>
> Is there an easy way to get an editing (readline) in Python that would
> contain string for editing and would not just be empty?
>
> I googled but found nothing.

Er...: http://docs.python.org/library/readline.html
It's the third hit for "python readline".

Actually reading the page, sounds like you want readline.insert_text()
specifically.

Cheers,
Chris
--
Satan, thy name is MMW
http://blog.rebertia.com



More information about the Python-list mailing list