class_docstr: The :class:`PathSpec` class is a wrapper around a list of compiled
  :class:`.Pattern` instances.
docstr: Tests the equality of this path-spec with *other* (:class:`PathSpec`)
  by comparing their :attr:`~PathSpec.patterns` attributes.
docstr_tok: ["Tests","the","equality","of","this","path-spec","with","*","other","*","(",":","class",":","`","PathSpec","`",")","by","comparing","their",":","attr",":","`","~PathSpec.patterns","`","attributes","."]
code: def __eq__(self, other):
      """
      Tests the equality of this path-spec with *other* (:class:`PathSpec`)
      by comparing their :attr:`~PathSpec.patterns` attributes.
      """
      if isinstance(other, PathSpec):
          paired_patterns = izip_longest(self.patterns, other.patterns)
          return all(a == b for a, b in paired_patterns)
      else:
          return NotImplemented
  
file_path: ray/python/ray/_private/thirdparty/pathspec/pathspec.py
imports: from .None import util
  from .compat import Collection, iterkeys, izip_longest, string_types, unicode
label_desc: Use image node_id 2 for calling the PathSpec obj's underlying member method code with example usage: obj.__eq__(other) and returns: all, NotImplemented