MCPcopy Index your code
hub / github.com/RustPython/RustPython / deleteMe

Method deleteMe

Lib/bdb.py:1023–1035  ·  view source on GitHub ↗

Delete the breakpoint from the list associated to a file:line. If it is the last breakpoint in that position, it also deletes the entry for the file:line.

(self)

Source from the content-addressed store, hash-verified

1021 Breakpoint.bpbynumber = [None]
1022
1023 def deleteMe(self):
1024 """Delete the breakpoint from the list associated to a file:line.
1025
1026 If it is the last breakpoint in that position, it also deletes
1027 the entry for the file:line.
1028 """
1029
1030 index = (self.file, self.line)
1031 self.bpbynumber[self.number] = None # No longer in list
1032 self.bplist[index].remove(self)
1033 if not self.bplist[index]:
1034 # No more bp for this f:l combo
1035 del self.bplist[index]
1036
1037 def enable(self):
1038 """Mark the breakpoint as enabled."""

Callers 4

clear_breakMethod · 0.80
clear_bpbynumberMethod · 0.80
clear_all_file_breaksMethod · 0.80
clear_all_breaksMethod · 0.80

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected