Python collections.OrderedDict.__delitem__() Examples
The following are 8
code examples of collections.OrderedDict.__delitem__().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
collections.OrderedDict
, or try the search function
.
Example #1
Source File: pgcollections.py From tf-pose with Apache License 2.0 | 5 votes |
def __delitem__(self, key): kl = key.lower() if kl not in self.keyMap: raise KeyError(key) OrderedDict.__delitem__(self, self.keyMap[kl]) del self.keyMap[kl]
Example #2
Source File: _lru_cache.py From rich with MIT License | 5 votes |
def __getitem__(self: Dict[CacheKey, CacheValue], key: CacheKey) -> CacheValue: """Gets the item, but also makes it most recent.""" value: CacheValue = OrderedDict.__getitem__(self, key) OrderedDict.__delitem__(self, key) OrderedDict.__setitem__(self, key, value) return value
Example #3
Source File: pg.py From slack-sql with MIT License | 5 votes |
def __delitem__(self, key): if self._read_only: self._read_only_error() dict.__delitem__(self, key)
Example #4
Source File: pg.py From slack-sql with MIT License | 5 votes |
def __delitem__(self, key): if self._read_only: self._read_only_error() OrderedDict.__delitem__(self, key)
Example #5
Source File: pg.py From slack-sql with MIT License | 5 votes |
def __delitem__(self, key): if self._read_only: self._read_only_error() dict.__delitem__(self, key)
Example #6
Source File: pg.py From slack-sql with MIT License | 5 votes |
def __delitem__(self, key): if self._read_only: self._read_only_error() OrderedDict.__delitem__(self, key)
Example #7
Source File: pgcollections.py From soapy with GNU General Public License v3.0 | 5 votes |
def __delitem__(self, key): kl = key.lower() if kl not in self.keyMap: raise KeyError(key) OrderedDict.__delitem__(self, self.keyMap[kl]) del self.keyMap[kl]
Example #8
Source File: pgcollections.py From qgisSpaceSyntaxToolkit with GNU General Public License v3.0 | 5 votes |
def __delitem__(self, key): kl = key.lower() if kl not in self.keyMap: raise KeyError(key) OrderedDict.__delitem__(self, self.keyMap[kl]) del self.keyMap[kl]