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

Method delete

Lib/idlelib/colorizer.py:193–197  ·  view source on GitHub ↗

Delete chars between indexes and mark for colorizing.

(self, index1, index2=None)

Source from the content-addressed store, hash-verified

191 self.notify_range(index, index + "+%dc" % len(chars))
192
193 def delete(self, index1, index2=None):
194 "Delete chars between indexes and mark for colorizing."
195 index1 = self.index(index1)
196 self.delegate.delete(index1, index2)
197 self.notify_range(index1)
198
199 def notify_range(self, index1, index2=None):
200 "Mark text changes for processing and restart colorizing, if active."

Callers

nothing calls this directly

Calls 2

notify_rangeMethod · 0.95
indexMethod · 0.45

Tested by

no test coverage detected