delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/27/11:07:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <jason AT tishler DOT net>
To: Gary Bishop <gb AT cs DOT unc DOT edu>
Cc: cygwin AT cygwin DOT com
Subject: Re: Readline not working in python?
Message-ID: <20011127110854.A1176@dothill.com>
Mail-Followup-To: Gary Bishop <gb AT cs DOT unc DOT edu>, cygwin AT cygwin DOT com
Mime-Version: 1.0
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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019