A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-November/105349.html below:

[Python-Dev] rlcompleter -- auto-complete dictionary keys (+ tests)

[Python-Dev] rlcompleter -- auto-complete dictionary keys (+ tests) [Python-Dev] rlcompleter -- auto-complete dictionary keys (+ tests)Brian Curtin brian.curtin at gmail.com
Sun Nov 7 17:41:09 CET 2010
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>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4