MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / iloc

Method iloc

sortedcontainers/sorteddict.py:200–218  ·  view source on GitHub ↗

Cached reference of sorted keys view. Deprecated in version 2 of Sorted Containers. Use :func:`SortedDict.keys` instead.

(self)

Source from the content-addressed store, hash-verified

198
199 @property
200 def iloc(self):
201 """Cached reference of sorted keys view.
202
203 Deprecated in version 2 of Sorted Containers. Use
204 :func:`SortedDict.keys` instead.
205
206 """
207 # pylint: disable=attribute-defined-outside-init
208 try:
209 return self._iloc
210 except AttributeError:
211 warnings.warn(
212 'sorted_dict.iloc is deprecated.'
213 ' Use SortedDict.keys() instead.',
214 DeprecationWarning,
215 stacklevel=2,
216 )
217 _iloc = self._iloc = SortedKeysView(self)
218 return _iloc
219
220
221 def clear(self):

Callers

nothing calls this directly

Calls 1

SortedKeysViewClass · 0.85

Tested by

no test coverage detected