Inserting a tab with tab completion enabled on win32

Discussion in 'Python' started by News Sympatico, May 21, 2005.

  1. I've followed the tab completion example given in the Library Reference
    docs for the rlcompleter module that makes the tab key do name
    completion. That works but now you need another key stroke to insert an
    actual tab.

    I've tried lines like:

    readline.parse_and_bind("\C-o: tab-insert")

    and they work fine under Linux but on Windows they raise a KeyError.

    I'm using the readline package from UNC Python Tools on Python 2.4.

    Does anyone know how to fix this or is there even some other way to
    insert an indent (do I have to type spaces?)?
     
    News Sympatico, May 21, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gabor
    Replies:
    3
    Views:
    629
    Jacob Yang [MSFT]
    Aug 26, 2003
  2. Replies:
    2
    Views:
    468
    Fernando Perez
    Feb 3, 2005
  3. Dirk Loss
    Replies:
    3
    Views:
    335
    Bjoern Schliessmann
    Dec 19, 2007
  4. Siddhant

    tab completion?

    Siddhant, Mar 4, 2008, in forum: Python
    Replies:
    4
    Views:
    307
    Siddhant
    Mar 4, 2008
  5. ziggs
    Replies:
    2
    Views:
    188
    Henry Robinson
    Apr 21, 2004
Loading...

Share This Page