homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zvezdan
Recipients ronaldoussoren, zvezdan
Date 2011年12月19日.04:05:35
SpamBayes Score 3.1775576e-09
Marked as misclassified No
Message-id <1324267597.43.0.334578978638.issue13631@psf.upfronthosting.co.za>
In-reply-to
Content
Problem
=======
The changes in r87356 for py3k and r87358 for python-2.7 described in issue 9907 have broken parsing of the initialization file .editrc under editline emulation of readline on Mac OS X.
Background
==========
Both readline and editline allow settings customized per program.
For example, .inputrc file for readline::
 $if Python
 set editing-mode vi
 $endif
will be applied only to Python processes.
Similarly, .editrc file for editline::
 python:bind -v
 python:bind ^I rl_complete
will be applied only to Python processes on Mac OS X.
This works fine on python-2.6.
It's broken on 2.7 and 3.2 and later because the change in issue 9907 moved the rl_initialize() call towards the beginning of the setup function.
Solution
========
The rl_readline_name variable must be set to "python" **before** the call to rl_initialize(). Attached are patches for 2.7 and 3.2.
History
Date User Action Args
2011年12月19日 04:06:37zvezdansetrecipients: + zvezdan, ronaldoussoren
2011年12月19日 04:06:37zvezdansetmessageid: <1324267597.43.0.334578978638.issue13631@psf.upfronthosting.co.za>
2011年12月19日 04:05:36zvezdanlinkissue13631 messages
2011年12月19日 04:05:36zvezdancreate

AltStyle によって変換されたページ (->オリジナル) /