 	    ("\C-c\C-p"  . py-previous-statement)
 	    ("\C-c\C-u"  . py-goto-block-up)
 	    ("\C-c\C-m"  . py-mark-block)
-	    ("\C-c#"	 . comment-region)
+	    ("\C-c#"	 . py-comment-region)
 	    ("\C-c?"	 . py-describe-mode)
 	    ("\C-c\C-hm" . py-describe-mode)
 	    ("\e\C-a"	 . beginning-of-python-def-or-class)

	      (1+ (current-column))))))

       ;; not on a continuation line

       ;; if at start of restriction, or on a non-indenting comment
       ;; line, assume they intended whatever's there
       ((or (bobp) (looking-at "[ \t]*#[^ \t\n]"))
	(current-indentation))

       ;; else indentation based on that of the statement that

	(forward-line 1))))
  (set-marker end nil))

(defun py-comment-region (beg end &optional arg)
  "Like `comment-region' but uses double hash (`#') comment starter."
  (interactive "r\nP")
  (let ((comment-start "## "))
    (comment-region beg end arg)))


;; Functions for moving point
