Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 27 Nov 2001 11:08:54 -0500 From: Jason Tishler To: Gary Bishop Cc: cygwin AT cygwin DOT com Subject: Re: Readline not working in python? Message-ID: <20011127110854.A1176@dothill.com> Mail-Followup-To: Gary Bishop , cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="2apDZUNv1zmAC/5h" Content-Disposition: inline In-Reply-To: <200111271510.KAA07586@wren.cs.unc.edu> User-Agent: Mutt/1.3.18i --2apDZUNv1zmAC/5h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Gary, On Tue, Nov 27, 2001 at 10:10:42AM -0500, Gary Bishop wrote: > Any hints on how to get it to work? Do you have a .pythonrc.py like the attached? > In Python 2.1.1 (#12 Oct 5 2001, 08:16:52) ... BTW, is this a Python 2.1.1 that you built yourself? Jason --2apDZUNv1zmAC/5h Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=".pythonrc.py" try: import readline except ImportError: print "Module readline not available." else: import rlcompleter readline.parse_and_bind("tab: complete") import os histfile = os.path.join(os.environ["HOME"], ".python_history") try: readline.read_history_file(histfile) except IOError: pass import atexit atexit.register(readline.write_history_file, histfile) del os, histfile --2apDZUNv1zmAC/5h Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --2apDZUNv1zmAC/5h--