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

Method deleteMe

Lib/bdb.py:1014–1026  ·  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

1012 Breakpoint.bpbynumber = [None]
1013
1014 def deleteMe(self):
1015 """Delete the breakpoint from the list associated to a file:line.
1016
1017 If it is the last breakpoint in that position, it also deletes
1018 the entry for the file:line.
1019 """
1020
1021 index = (self.file, self.line)
1022 self.bpbynumber[self.number] = None # No longer in list
1023 self.bplist[index].remove(self)
1024 if not self.bplist[index]:
1025 # No more bp for this f:l combo
1026 del self.bplist[index]
1027
1028 def enable(self):
1029 """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