[Python-bugs-list] [ python-Bugs-554645 ] Strange readline completer behaviour

noreply@sourceforge.net noreply@sourceforge.net
Sat, 11 May 2002 08:35:11 -0700


Bugs item #554645, was opened at 2002-05-10 19:38
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=554645&group_id=5470

Category: Extension Modules
>Group: Not a Bug
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Joonas Paalasmaa (jpaal)
>Assigned to: Michael Hudson (mwh)
Summary: Strange readline completer behaviour

Initial Comment:
I have enabled readline completing in my .pythonrc file to which PYTHONSTARTUP
points to. However, when I hit TAB twice in interactive mode, completer
displays the contents of the current directory, not Python's namespace.
I have built Python with readline 4.1-1 on Debian 2.2R6.


root@debian:~# cat .pythonrc
import readline
readline.parse_and_bind("tab: complete")
root@debian:~# python
Python 2.2 (#3, May  7 2002, 05:48:48) 
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
.bash_history  .profile       batch          extensionTest  todo
.bash_logout   .pythonrc      builds         musketti.txt   
.bashrc        bash.output    debs           temp           
>>> 


----------------------------------------------------------------------

>Comment By: Michael Hudson (mwh)
Date: 2002-05-11 15:35

Message:
Logged In: YES 
user_id=6656

Chuck an "import rlcompleter" in there too.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=554645&group_id=5470