bassemreda

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.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.