Lines Matching refs:meth
31 except for :meth:`__hash__`. For advanced applications requiring a hash method,
32 the :class:`ImmutableSet` class adds a :meth:`__hash__` method but omits methods
39 that the element defines both :meth:`__eq__` and :meth:`__hash__`. As a result,
62 Because :class:`ImmutableSet` objects provide a :meth:`__hash__` method, they
109 Note, the non-operator versions of :meth:`union`, :meth:`intersection`,
110 :meth:`difference`, and :meth:`symmetric_difference` will accept any iterable as
130 or ``a>b``. Accordingly, sets do not implement the :meth:`__cmp__` method.
133 the :meth:`list.sort` method is undefined for lists of sets.
178 Note, the non-operator versions of :meth:`update`, :meth:`intersection_update`,
179 :meth:`difference_update`, and :meth:`symmetric_difference_update` will accept
185 Also note, the module also includes a :meth:`union_update` method which is an
186 alias for :meth:`update`. The method is included for backwards compatibility.
187 Programmers should prefer the :meth:`update` method because it is supported by
231 hashable, the element is checked to see if it has an :meth:`__as_immutable__`
234 Since :class:`Set` objects have a :meth:`__as_immutable__` method returning an
237 A similar mechanism is needed by the :meth:`__contains__` and :meth:`remove`
240 :meth:`__as_temporarily_immutable__` method which returns the element wrapped by
241 a class that provides temporary methods for :meth:`__hash__`, :meth:`__eq__`,
242 and :meth:`__ne__`.
247 :class:`Set` objects implement the :meth:`__as_temporarily_immutable__` method
277 * The built-in versions do not have a :meth:`union_update` method. Instead, use
278 the :meth:`update` method which is equivalent.