GNU bug report logs -
#68559
[PATCH] Improve Python shell completion
Previous Next
Reported by: Liu Hui <liuhui1610 <at> gmail.com>
Date: Thu, 18 Jan 2024 04:50:01 UTC
Severity: wishlist
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
kobarity <kobarity <at> gmail.com> 于2024年1月25日周四 23:38写道:
>
> Liu Hui wrote:
> > kobarity <kobarity <at> gmail.com> 于2024年1月23日周二 22:15写道:
> > > Thank you. I tried the new patch and confirmed that the Python Shell
> > > buffer allows keyword argument completion on multi-line function
> > > calls. However, my expectation is that it can be done in Python
> > > buffer as well (after calling `python-shell-send-buffer'). Is this
> > > also possible?
> > Thank you for the feedback. I have updated the patch to add support in
> > Python buffer.
>
> Thank you. It's working very nice.
>
> I apologize for reporting in the piecemeal fashion, but I have noticed
> the following differences from the current completion.
No worries. I appreciate your valuable feedback for improving the
quality of the patch.
> 1. Module names cannot be completed in Python buffer.
Can you elaborate? The completion of module names never worked for me
except using IPython with non-native completion mechanism.
Because module names cannot be completed using vanilla python
interpreter in the terminal, they are also not completed even with the
patch, unless jedi is available.
> 2. Completion is not working in comments.
>
> I'm not sure if the completion should work in comments, but some
> people might want it because the current python-mode allows it in both
> Python buffer and Python Shell buffer.
Thanks for pointing it out. The attached patch should now restore
previous basic completion behavior in comments.
[0001-Improve-Python-shell-completion-bug-68559.patch (text/x-patch, attachment)]
This bug report was last modified 1 year and 66 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.