Function: python-import-symbol-at-point

python-import-symbol-at-point is an autoloaded, interactive and byte-compiled function defined in python.el.gz.

Signature

(python-import-symbol-at-point)

Documentation

Add an import statement for the symbol at point to the current buffer.

This works like python-add-import, but with the opposite behavior regarding the prefix argument.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
;;;###autoload
(defun python-import-symbol-at-point ()
  "Add an import statement for the symbol at point to the current buffer.
This works like `python-add-import', but with the opposite
behavior regarding the prefix argument."
  (interactive nil)
  (python-add-import (unless current-prefix-arg (thing-at-point 'symbol))))