[issue21261] Teach IDLE to Autocomplete dictionary keys
Louie Lu
report at bugs.python.org
Tue May 9 02:11:20 EDT 2017
Louie Lu added the comment:
In this PR, it will complete dictionary key with string, int, and others.
for example:
d = {'long_key': 10, 'short_key': 20, 30: 40, (((1, 2), 3, 4), 5): 50}
d['lo<tab> -> d['long_key'
d[(((1<tab> -> d[(((1, 2), 3, 4), 5)
d[3<tab> -> d[30
The problem is, autocomplete_w can't figure the original key is string or others, so this will be possible:
d[long<tab> -> d[long_key]
d[shor<tab> -> d[short_key]
----------
nosy: +louielu
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21261>
_______________________________________
More information about the Python-bugs-list
mailing list