MCPcopy
hub / github.com/pyodide/pyodide / pop

Method pop

src/py/_pyodide/_core_docs.py:1001–1006  ·  view source on GitHub ↗

Remove and return the ``item`` at ``index`` (default last). Raises :py:exc:`IndexError` if list is empty or index is out of range.

(self, /, index: int = -1)

Source from the content-addressed store, hash-verified

999 raise NotImplementedError
1000
1001 def pop(self, /, index: int = -1) -> T:
1002 """Remove and return the ``item`` at ``index`` (default last).
1003
1004 Raises :py:exc:`IndexError` if list is empty or index is out of range.
1005 """
1006 raise NotImplementedError
1007
1008 def push(self, /, object: T) -> None:
1009 pass

Callers 15

check_expected_js_docsFunction · 0.45
initializeNativeFSFunction · 0.45
test_jsmod_import_star1Function · 0.45
test_jsmod_import_star2Function · 0.45
test_array_popFunction · 0.45
test_mappingsFunction · 0.45
get_boundFunction · 0.45
test_bind_arg_checkingFunction · 0.45
_do_callFunction · 0.45
remove_event_listenerFunction · 0.45

Calls

no outgoing calls

Tested by 8

test_jsmod_import_star1Function · 0.36
test_jsmod_import_star2Function · 0.36
test_array_popFunction · 0.36
test_mappingsFunction · 0.36
get_boundFunction · 0.36
test_bind_arg_checkingFunction · 0.36