bassemreda

Archive for March, 2010|Monthly archive page

Auto completion for Python on Windows

In Python on March 16, 2010 at 4:41 pm

I wanted to write some scripts using python. If you have ever used python you would know that the you miss features from a strongly typed language such as auto completion of your variables. As python is a dynamic language mistakes occur very often.

Any one who uses python has come across iPython.Taken straight from ipython documentation:

At any time, hitting TAB will complete any available python commands or variable names, and show you a list of the possible completions if there’s no unambiguous one. It will also complete filenames in the current directory if no python names match what you’ve typed so far.

Right now I’m on a Windows platform. Luckly I found ipython windows installer. But as I gave it a try, I found that I can’t use my beloved <tab> for auto completion feature. So with the help of Google I found a library called PyReadline: a ctypes-based readline for Windows, which enables auto completion to iPython.

After downloading, and  installing this package, launching iPython will give you auto completion.

Follow

Get every new post delivered to your Inbox.