'comint-filename-completion' may complete the filename at
wrong locations. Users who want proper filename completion
should use specialized completion backends (e.g. Jedi).
* lisp/progmodes/python.el (inferior-python-mode): Remove
'comint-filename-completion' in 'comint-dynamic-complete-functions'.
(cherry picked from commit
46776cae052b9bb106ce322d700abbc7cccc4c77)
(setq-local compilation-error-regexp-alist
python-shell-compilation-regexp-alist)
(setq-local scroll-conservatively 1)
+ (setq-local comint-dynamic-complete-functions
+ '(comint-c-a-p-replace-by-expanded-history))
(add-hook 'completion-at-point-functions
#'python-shell-completion-at-point nil 'local)
(define-key inferior-python-mode-map "\t"