On Sun, Nov 7, 2010 at 04:19, Valery Khamenya <khamenya at gmail.com> wrote: > Hi, >> A) I missed the auto-complete feature for dictionary keys a lot in python > console. This patch seems to do the job. >> B) There is no rlcompleter tests in trunk for some reason. So, I've taken > the 2.7.x test_rlcompleter.py and extended it. >> C) patched rlcompleter as such works OK for unicode dictionary keys as > well. All tests pass OK. HOWEVER, readline's completion mechanism seem to be > confused with unicode strings -- see comments to > Completer.dict_key_matches(). So, perhaps, some changes should be applied to > readline code too. >> Attached: >> 1. rlcompleter.py (as for trunk) >> 2. test_rlcompleter (as for trunk) >> 3. rlcompleter_trunk_to_new.diff (created as: diff rlcompleter_trunk.py > rlcompleter.py >rlcompleter_trunk_to_new.diff) >> P.S. thanks to kerio & ssbr on icq for advices. >> best regards > -- > Valery A.Khamenya >> _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/brian.curtin%40gmail.com >>Can you post your patch on bugs.python.org? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20101107/2d52cb63/attachment.html>