MCPcopy Index your code
hub / github.com/python/cpython / ConvertingList

Class ConvertingList

Lib/logging/config.py:352–360  ·  view source on GitHub ↗

A converting list wrapper.

Source from the content-addressed store, hash-verified

350 return self.convert_with_key(key, value, replace=False)
351
352class ConvertingList(list, ConvertingMixin):
353 """A converting list wrapper."""
354 def __getitem__(self, key):
355 value = list.__getitem__(self, key)
356 return self.convert_with_key(key, value)
357
358 def pop(self, idx=-1):
359 value = list.pop(self, idx)
360 return self.convert(value)
361
362class ConvertingTuple(tuple, ConvertingMixin):
363 """A converting tuple wrapper."""

Callers 1

convertMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…