MCPcopy
hub / github.com/grantjenks/python-sortedcontainers / append

Method append

sortedcontainers/sortedlist.py:1286–1295  ·  view source on GitHub ↗

Raise not-implemented error. Implemented to override `MutableSequence.append` which provides an erroneous default implementation. :raises NotImplementedError: use ``sl.add(value)`` instead

(self, value)

Source from the content-addressed store, hash-verified

1284
1285
1286 def append(self, value):
1287 """Raise not-implemented error.
1288
1289 Implemented to override `MutableSequence.append` which provides an
1290 erroneous default implementation.
1291
1292 :raises NotImplementedError: use ``sl.add(value)`` instead
1293
1294 """
1295 raise NotImplementedError('use ``sl.add(value)`` instead')
1296
1297
1298 def extend(self, values):

Callers 15

addMethod · 0.80
updateMethod · 0.80
_build_indexMethod · 0.80
addMethod · 0.80
updateMethod · 0.80
test_getitemFunction · 0.80
test_getitem_sliceFunction · 0.80
test_repr_recursionFunction · 0.80
init_sorted_listFunction · 0.80
benchmark_addFunction · 0.80
benchmark_delFunction · 0.80
benchmarkFunction · 0.80

Calls

no outgoing calls

Tested by 9

test_getitemFunction · 0.64
test_getitem_sliceFunction · 0.64
test_repr_recursionFunction · 0.64
test_getitem_sliceFunction · 0.64
test_repr_recursionFunction · 0.64
actorFunction · 0.64
actorFunction · 0.64
test_getitemFunction · 0.64
test_getitem_sliceFunction · 0.64