Fix bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654398
C-c C-h ('py-help-at-point') does not work because 'py-which-shell' is 'nil' in 'py-execute-string'.
--- a/.emacs-my Wed Dec 21 22:36:27 2011 +0200
+++ b/.emacs-my Tue Jan 03 18:46:17 2012 +0200
@@ -1947,6 +1947,12 @@
(setq python-indent 4)
+(eval-after-load 'python-mode
+ (when (equal py-version "5.1.0")
+ (setq-default py-which-shell py-python-command)
+ ;; (py-toggle-shells 'cpython)
+ ))
+
(defun my-python-add-to-path (path)
(interactive (list (read-directory-name "Enter new path for PYTHONPATH: ")))
(when (featurep 'cygwin-mount)