Lines Matching refs:meth
105 ABCs for classes that provide respectively the methods :meth:`__contains__`,
106 :meth:`__hash__`, :meth:`__len__`, and :meth:`__call__`.
110 ABC for classes that provide the :meth:`__iter__` method.
113 as :class:`Iterable` or that have an :meth:`__iter__` method, but it does
114 not detect classes that iterate with the :meth:`__getitem__` method.
126 ABC for classes that provide the :meth:`~iterator.__iter__` and
127 :meth:`~iterator.__next__` methods. See also the definition of
132 ABC for iterable classes that also provide the :meth:`__reversed__`
140 :pep:`342` that extends iterators with the :meth:`~generator.send`,
141 :meth:`~generator.throw` and :meth:`~generator.close` methods.
153 :meth:`__iter__`, :meth:`__reversed__` and :meth:`index`, make
154 repeated calls to the underlying :meth:`__getitem__` method.
155 Consequently, if :meth:`__getitem__` is implemented with constant
185 expressions. Custom implementations must provide the :meth:`__await__`
194 *awaitables*, even though they do not have an :meth:`__await__` method.
204 :meth:`~coroutine.send`, :meth:`~coroutine.throw`, and
205 :meth:`~coroutine.close`. Custom implementations must also implement
206 :meth:`__await__`. All :class:`Coroutine` instances are also instances of
212 *awaitables*, even though they do not have an :meth:`__await__` method.
250 abstract methods: :meth:`__contains__`, :meth:`__iter__`, and :meth:`__len__`.
251 The ABC supplies the remaining methods such as :meth:`__and__` and
252 :meth:`isdisjoint`::
283 :meth:`_from_iterable` which calls ``cls(iterable)`` to produce a new set.
285 constructor signature, you will need to override :meth:`_from_iterable`
291 semantics are fixed), redefine :meth:`__le__` and :meth:`__ge__`,
295 The :class:`Set` mixin provides a :meth:`_hash` method to compute a hash value
296 for the set; however, :meth:`__hash__` is not defined because not all sets
298 inherit from both :meth:`Set` and :meth:`Hashable`, then define