(py-delete-char): must have 'supersede value for 'delete-selection and
'pedning-delete properties.
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index a1ff2c7..128641e 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -590,6 +590,10 @@
(if base-found-p
(message "Closes block: %s" base-text)))))
+;; required for pending-del and delsel modes
+(put 'py-delete-char 'delete-selection 'supersede)
+(put 'py-delete-char 'pending-delete 'supersede)
+
(defun py-indent-line ()
"Fix the indentation of the current line according to Python rules."
(interactive)