MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / pop

Method pop

pymongo/common.py:1024–1027  ·  view source on GitHub ↗
(self, key: str, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

1022 return self.__data.get(key.lower(), default)
1023
1024 def pop(self, key: str, *args: Any, **kwargs: Any) -> Any:
1025 lc_key = key.lower()
1026 self.__casedkeys.pop(lc_key, None)
1027 return self.__data.pop(lc_key, *args, **kwargs)
1028
1029 def popitem(self) -> tuple[str, Any]:
1030 lc_key, cased_key = self.__casedkeys.popitem()

Callers 15

__init__Method · 0.45
_update_rs_from_primaryFunction · 0.45
__setitem__Method · 0.45
__getitem__Method · 0.45
apply_write_concernFunction · 0.45
_normalize_optionsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected