MCPcopy
hub / github.com/pallets/werkzeug / popitem

Method popitem

src/werkzeug/datastructures/headers.py:321–323  ·  view source on GitHub ↗

Removes a key or index and returns a (key, value) item.

(self)

Source from the content-addressed store, hash-verified

319 return rv
320
321 def popitem(self) -> tuple[str, str]:
322 """Removes a key or index and returns a (key, value) item."""
323 return self._list.pop()
324
325 def __contains__(self, key: str) -> bool:
326 """Check if a key is present."""

Calls 1

popMethod · 0.45