MCPcopy Index your code
hub / github.com/python/cpython / delete

Method delete

Lib/idlelib/pyshell.py:357–364  ·  view source on GitHub ↗
(self, index1, index2=None)

Source from the content-addressed store, hash-verified

355 UndoDelegator.insert(self, index, chars, tags)
356
357 def delete(self, index1, index2=None):
358 try:
359 if self.delegate.compare(index1, "<", "iomark"):
360 self.delegate.bell()
361 return
362 except TclError:
363 pass
364 UndoDelegator.delete(self, index1, index2)
365
366 def undo_event(self, event):
367 # Temporarily monkey-patch the delegate's .insert() method to

Callers 2

restart_subprocessMethod · 0.45
enter_callbackMethod · 0.45

Calls 2

compareMethod · 0.45
bellMethod · 0.45

Tested by

no test coverage detected