More random python observations from a perl programmer

Tom Christiansen tchrist at mox.perl.com
Thu Aug 19 19:40:58 EDT 1999


     [courtesy cc of this posting mailed to cited author]

In comp.lang.python, 
    Michael Hudson <mwh21 at cam.ac.uk> writes:
:Ah, have you discovered rlcompleter yet? Put this in your ~/.pythonrc:
:
:import rlcompleter
:readline.parse_and_bind('tab: complete')
:
:set PYTHONSTARTUP=~/.pythonrc and then in python type:
:
:d={}
:d.
:
:and whack tab a couple of times. This should definitely be better
:advertised; I use it all the time.

That just triggers:

    % python
    Python 1.5.1 (#1, Sep  3 1998, 22:51:17)  [GCC 2.7.2.3] on linux-i386
    Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
    Traceback (innermost last):
      File "/home/tchrist/.pythonrc", line 2, in ?
	readline.parse_and_bind('tab: complete')
    NameError: readline

Time to do a real install.    Hate redHate.

--tom
-- 
    I think I'm likely to be certified before Perl is...  :-) 
	--Larry Wall in <1995Feb12.061604.6008 at netlabs.com>




More information about the Python-list mailing list