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

Function safety_limit

Tools/gdb/libpython.py:121–125  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

119
120
121def safety_limit(val):
122 # Given an integer value from the process being debugged, limit it to some
123 # safety threshold so that arbitrary breakage within said process doesn't
124 # break the gdb process too much (e.g. sizes of iterations, sizes of lists)
125 return min(val, 1000)
126
127
128def safe_range(val):

Callers 1

safe_rangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…