Fix: nil python shell because we already switched from .py file.
--- a/.emacs-my Tue Aug 02 23:42:10 2016 +0300
+++ b/.emacs-my Tue Aug 02 23:46:27 2016 +0300
@@ -2786,12 +2786,12 @@
(format "Describe symbol (default %s): " symbol)
"Describe symbol: ")
nil nil symbol))))
- (let ( )
+ (let ( (pyproc (python-shell-get-process)) )
(switch-to-buffer (get-buffer-create "*Python-doc*"))
(read-only-mode -1)
(buffer-disable-undo)
(erase-buffer)
- (insert (python-shell-send-string-no-output (format my-python/eldoc-string-code2 symbol) (python-shell-get-process)))
+ (insert (python-shell-send-string-no-output (format my-python/eldoc-string-code2 symbol) pyproc))
(goto-char (point-min))
(when (re-search-forward "^u?'" (line-end-position) t)
(replace-match ""))