Mail Archives: cygwin/2001/11/27/11:07:24
--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 -