def values(self): """Set-like object providing a view of index values. >>> index = Index('/tmp/diskcache/index') >>> index.clear() >>> index.update({'a': 1, 'b': 2, 'c': 3}) >>> values_view = index.values() >>> 2 in values_view True :return: values view """ return ValuesView(self)
def viewvalues(self): "OMD.viewvalues() -> an object providing a view on OMD's values" return ValuesView(self)
def viewvalues(self): "od.viewvalues() -> an object providing a view on od's values" return ValuesView(self)
# abstractproperty deprecated in Python 3.3 in favor of using @property with @abstractmethod. # Before 3.3, this silently fails to detect when an abstract property has not been overridden. from abc import abstractproperty #: from itertools import izip #: # In Python 3, the collections ABCs were moved into collections.abc, which does not exist in # Python 2. Support for importing them directly from collections is dropped in Python 3.8. import collections as collections_abc # noqa: F401 (imported but unused) from collections import ( # noqa: F401 (imported but unused) Mapping, MutableMapping, KeysView, ValuesView, ItemsView) viewkeys = lambda m: m.viewkeys() if hasattr(m, 'viewkeys') else KeysView( m) #: viewvalues = lambda m: m.viewvalues() if hasattr(m, 'viewvalues' ) else ValuesView(m) #: viewitems = lambda m: m.viewitems() if hasattr(m, 'viewitems' ) else ItemsView(m) #: iterkeys = lambda m: m.iterkeys() if hasattr(m, 'iterkeys') else iter( m.keys()) #: itervalues = lambda m: m.itervalues() if hasattr( m, 'itervalues') else iter(m.values()) #: iteritems = lambda m: m.iteritems() if hasattr(m, 'iteritems') else iter( m.items()) #: else: # Assume Python 3 when not PY2, but explicitly check before showing this warning. if PYMAJOR == 3 and PYMINOR < 5: # pragma: no cover warn('Python3 < 3.5 is not officially supported.')
def values(self): return ValuesView(self)
async def test_values(self): self.maxDiff = None conn = AMQPConnection(hostname="localhost", username="******", password="******") self.assertEqual(str(ValuesView(conn)), str(conn.values()))
def values(self): "D.values() -> an object providing a view on D's values" return ValuesView(self)
def values(self) -> ValuesView: return ValuesView(self)
def values(self): "implementation of a view, from collections.Mapping" return ValuesView(self)
def values(self): """ Get all the values of the configuration. :return tuple: The values of the configuration. """ return ValuesView(self)