Function: python-completion-at-point

python-completion-at-point is a byte-compiled function defined in python.el.gz.

Signature

(python-completion-at-point)

Documentation

Function for completion-at-point-functions in python-mode.

For this to work as best as possible you should call python-shell-send-buffer from time to time so context in inferior Python process is updated properly.

Aliases

python-completion-complete-at-point (obsolete since 25.1)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
;;; Symbol completion

(defun python-completion-at-point ()
  "Function for `completion-at-point-functions' in `python-mode'.
For this to work as best as possible you should call
`python-shell-send-buffer' from time to time so context in
inferior Python process is updated properly."
  (let ((process (python-shell-get-process)))
    (when (and process
               (python-shell-with-shell-buffer
                 (python-util-comint-end-of-output-p)))
      (python-shell-completion-at-point process))))