MCPcopy Index your code
hub / github.com/praw-dev/praw / _access

Method _access

praw/models/util.py:31–33  ·  view source on GitHub ↗
(self, item: Any)

Source from the content-addressed store, hash-verified

29 self._set = OrderedDict()
30
31 def _access(self, item: Any) -> None:
32 if item in self._set:
33 self._set.move_to_end(item)
34
35 def add(self, item: Any) -> None:
36 """Add an item to the set discarding the oldest item if necessary."""

Callers 2

__contains__Method · 0.95
addMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected