unable to import rlcompleter readline

M

muru kessan

hi guys,
i want the python interactive shell to be auto complete and i found that by
adding the following lines in PYTHONSTARTUP file it is possible

import rlcompleter, readline
readline.parse_and_bind('tab: complete')

but i get the following error in git bash shell
Note: i run windows8 as Operating System

Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)]
on win
32
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "C:\muru work 05-nov-2013\python\start.py", line 6, in <module>
import rlcompleter, readline
ImportError: No module named readline

Any help would be appreciated

Thanks,
muru
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top