MCPcopy
hub / github.com/cherrypy/cherrypy / clear

Method clear

cherrypy/lib/sessions.py:380–387  ·  view source on GitHub ↗

D.clear() -> None. Remove all items from D.

(self)

Source from the content-addressed store, hash-verified

378 return self._data.setdefault(key, default)
379
380 def clear(self):
381 """D.clear() -> None.
382
383 Remove all items from D.
384 """
385 if not self.loaded:
386 self.load()
387 self._data.clear()
388
389 def keys(self):
390 """D.keys() -> list of D's keys."""

Callers

nothing calls this directly

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected