gh-65460: IDLE: add completion of dict keys of type str#26039
gh-65460: IDLE: add completion of dict keys of type str#26039taleinat wants to merge 1 commit intopython:mainfrom
Conversation
Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
|
This PR is stale because it has been open for 30 days with no activity. |
|
@terryjreedy, how do we move forward with this? You previously mentioned the added complexity and amount of code as something you were weighing against the benefits of having this feature. To address that, this PR has less code than the previous one which also support keys of type bytes. Beyond that, I can commit to maintain this feature in the foreseeable future. I will mention that using this locally has been extremely nice, and I think this would make a greater positive impact on users' experiences than you may think. |
|
We need an update merge and resolution of test failures. Old test reports are gone. On my machine, test_idle passes on current main,. It fail thrice on this branch. Perhaps a result of changing mock_tk.Text. Inserting ')' into mock Text on 324 should have closed it. self.ct.open_calltip(True) on line 337 should leave a calltip. Repeat of first error. |
|
Manual testing: Old bug: Please post on the list as to how you found this useful. |
| index = self.text.index | ||
|
|
||
| for dex in (-1.0, 0.3, '1.-1', '1.0', '1.0 lineend', '1.end', '1.33', | ||
| for dex in ('0.0', '0.3', '1.0', '1.0 lineend', '1.end', '1.33', |
There was a problem hiding this comment.
The test examples removed here and below are legal and intentional. Please reinstate or explain.
| IDLE's shell auto-completion works for dict keys of types :class:`str` | ||
| and :class:`bytes`. No newline at end of file |
There was a problem hiding this comment.
| IDLE's shell auto-completion works for dict keys of types :class:`str` | |
| and :class:`bytes`. | |
| IDLE's shell auto-completion works for dict keys of types :class:`str`. |
|
When you're done making the requested changes, leave the comment: |
|
Updating that this is currently blocked by completions being broken on Linux (bpo-45193). |
This is an updated version of PR GH-15169, rebased onto the current main branch and with support for keys of type bytes removed.
Note that completion is intentionally limited to keys of type str only.
Additional changes made in this PR: