[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#68559: [PATCH] Improve Python shell completion
From: |
Liu Hui |
Subject: |
bug#68559: [PATCH] Improve Python shell completion |
Date: |
Mon, 26 Feb 2024 19:06:42 +0800 |
On Fri, Feb 23, 2024 at 10:39 PM kobarity <kobarity@gmail.com> wrote:
>
> Hi Liu,
>
> I noticed that with Non-native completions, Jedi completion is not
> enabled even if PYTHONSTARTUP is set and "REPL completion using Jedi
> 0.18.2" is shown in inferior Python. Is this expected behavior? Jedi
> completion is enabled regardless of PYTHONSTARTUP setting when I use
> IPython with Non-native completions.
Thanks for pointing out the problem! The attached patch should enable
Jedi completion for the non-native case.
On Fri, Feb 16, 2024 at 3:41 PM Eli Zaretskii <eliz@gnu.org> wrote:
> > The Python shell completion relies on the readline module, which is
> > not available for Python on MS-Windows. According to the instruction
> > in python.el:
> >
> > ;; readline based shell (it's known to work with PyPy). If your
> > ;; Python installation lacks readline (like CPython for Windows),
> > ;; installing pyreadline (URL `https://ipython.org/pyreadline.html')
> > ;; should suffice. To troubleshoot why you are not getting any
> > ;; completions, you can try the following in your Python shell:
> >
> > ;; >>> import readline, rlcompleter
> >
> > ;; If you see an error, then you need to either install pyreadline or
> > ;; setup custom code that avoids that dependency.
>
> I don't know if I have CPython, but the above does show an error
> message.
>
> > It may be necessary to install pyreadline (for Python 2.7) or
> > pyreadline3 (for Python 3).
>
> I will see if I can do that, thanks.
>
> Regardless, patches to the test suite to skip the tests which rely on
> those modules, if they aren't installed, will be welcome.
Such tests should be skipped now with this patch.
0001-Detect-the-readline-support-for-Python-shell-complet.patch
Description: Text Data
- bug#68559: [PATCH] Improve Python shell completion, (continued)
- bug#68559: [PATCH] Improve Python shell completion, kobarity, 2024/02/16
- bug#68559: [PATCH] Improve Python shell completion, Eli Zaretskii, 2024/02/16
- bug#68559: [PATCH] Improve Python shell completion, Mattias Engdegård, 2024/02/16
- bug#68559: [PATCH] Improve Python shell completion, kobarity, 2024/02/17
- bug#68559: [PATCH] Improve Python shell completion, Mattias Engdegård, 2024/02/20
- bug#68559: [PATCH] Improve Python shell completion, kobarity, 2024/02/21
- bug#68559: [PATCH] Improve Python shell completion, Mattias Engdegård, 2024/02/21
- bug#68559: [PATCH] Improve Python shell completion, kobarity, 2024/02/22
- bug#68559: [PATCH] Improve Python shell completion, Mattias Engdegård, 2024/02/23
- bug#68559: [PATCH] Improve Python shell completion, kobarity, 2024/02/23
- bug#68559: [PATCH] Improve Python shell completion,
Liu Hui <=
- bug#68559: [PATCH] Improve Python shell completion, Mattias Engdegård, 2024/02/26
- bug#68559: [PATCH] Improve Python shell completion, kobarity, 2024/02/26
- bug#68559: [PATCH] Improve Python shell completion, Basil L. Contovounesios, 2024/02/28
- bug#68559: [PATCH] Improve Python shell completion, Liu Hui, 2024/02/16
- bug#68559: [PATCH] Improve Python shell completion, Mattias Engdegård, 2024/02/17