MCPcopy
hub / github.com/django/django / insert

Method insert

django/contrib/gis/geos/mutable_list.py:196–200  ·  view source on GitHub ↗

Standard list insert method

(self, index, val)

Source from the content-addressed store, hash-verified

194 self[len(self) :] = vals
195
196 def insert(self, index, val):
197 "Standard list insert method"
198 if not isinstance(index, int):
199 raise TypeError("%s is not a legal index" % index)
200 self[index:index] = [val]
201
202 def pop(self, index=-1):
203 "Standard list pop method"

Callers 15

statisticsMethod · 0.80
disallowed_aggregatesMethod · 0.80
registerMethod · 0.80
reverse_field_pathFunction · 0.80
result_headersFunction · 0.80
updateMethod · 0.80
load_middlewareMethod · 0.80
handle_default_optionsFunction · 0.80
find_filesMethod · 0.80
get_template_namesMethod · 0.80

Calls

no outgoing calls

Tested by 7

setUpClassMethod · 0.64
test06_list_methodsMethod · 0.64
test_11_sortingMethod · 0.64
setUpMethod · 0.64
test_change_orderingMethod · 0.64