]> git.eshelyaron.com Git - emacs.git/commit
Improve completion in IPython/Python 3.13
authorkobarity <kobarity@gmail.com>
Sun, 16 Feb 2025 10:07:04 +0000 (19:07 +0900)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 21:33:40 +0000 (22:33 +0100)
commitc5e530d7afe3a4ce577006b351c7e9a4aa2fe33a
tree3f73843c29dd5efa8cdd57e5d319d17ec0de6b05
parentcb55fa35c1df57d4a9be35337432cf907d0cc2ad
Improve completion in IPython/Python 3.13

IPython/Python 3.13 indirectly imports rlcompleter, and the
completer is set up to reference rlcompleter.__main__.
However, this rlcompleter.__main__ is different from the
__main__ in the REPL execution.  Therefore, this completer
cannot correctly complete the REPL globals.  To address this
issue, we override rlcompleter.__main__ with __main__ only in
the case of IPython.

* lisp/progmodes/python.el (python-shell-completion-native-setup):
Modify __PYTHON_EL_native_completion_setup().  (Bug#76205)

(cherry picked from commit a75f4449fa2aceab54f28c5ef46f82225376c2a4)
lisp/progmodes/python.el