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 louielu
Recipients Eduardo.Seabra, cdspace, louielu, martin.panter, rhettinger, terry.reedy
Date 2017-05-09.06:11:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494310280.35.0.0943197309896.issue21261@psf.upfronthosting.co.za>
In-reply-to
Content
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]
History
Date User Action Args
2017-05-09 06:11:20louielusetrecipients: + louielu, rhettinger, terry.reedy, martin.panter, Eduardo.Seabra, cdspace
2017-05-09 06:11:20louielusetmessageid: <1494310280.35.0.0943197309896.issue21261@psf.upfronthosting.co.za>
2017-05-09 06:11:20louielulinkissue21261 messages
2017-05-09 06:11:19louielucreate