Cached reference of sorted keys view. Deprecated in version 2 of Sorted Containers. Use :func:`SortedDict.keys` instead.
(self)
| 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): |
nothing calls this directly
no test coverage detected