 
 (defvar python-mode-hook nil
   "*Hook called by `python-mode'.")
+
+(defvar py-shell-hook nil
+  "*Hook called by `py-shell'.")
 
 ;; In previous version of python-mode.el, the hook was incorrectly
 ;; called py-mode-hook, and was not defvar'd.  Deprecate its use.

    (setq py-pdbtrack-do-tracking-p t)
    (set-syntax-table py-mode-syntax-table)
    (use-local-map py-shell-map)
    ))

(defun py-clear-queue ()

to newline-and-indent in the global keymap, and shadows them with
local bindings to py-newline-and-indent."))

(require 'info-look)
(info-lookup-maybe-add-help
 :mode 'python-mode
 :regexp "[a-zA-Z0-9_]+"
 :doc-spec '(("(python-lib)Module Index")
	     ("(python-lib)Class-Exception-Object Index")
	     ("(python-lib)Function-Method-Variable Index")
	     ("(python-lib)Miscellaneous Index")))



;; Helper functions
