Message370845
| Author |
terry.reedy |
| Recipients |
terry.reedy |
| Date |
2020年06月06日.19:23:27 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1591471407.52.0.255326225411.issue40892@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Tab completions may be suffixed with ' ' (keywords), ':' (keywords)*, or '(' (callables) if one of those is required. Ex. 'import ', 'finally:', 'len('. Attributes may get '('. The possible downside is needing to remove the suffix if one does not want the completion for what it is but as a prefix to a longer word. Ex. 'imports','elsewhere', 'length'. But this should be much less common in code.
* 'else ' should be 'else:'
With keywords added (#37765) tab list is sorted(Completer().global_match('') + list(__main__.dict__.keys())). Whatever decide on, calculate first part once (if not already). list.sort used preexisting order. key are sorted. builtins might be. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年06月06日 19:23:27 | terry.reedy | set | recipients:
+ terry.reedy |
| 2020年06月06日 19:23:27 | terry.reedy | set | messageid: <1591471407.52.0.255326225411.issue40892@roundup.psfhosted.org> |
| 2020年06月06日 19:23:27 | terry.reedy | link | issue40892 messages |
| 2020年06月06日 19:23:27 | terry.reedy | create |
|