class_docstr: Dict-like container for Extension fields on proto instances.
  
  Note that in all cases we expect extension handles to be
  FieldDescriptors.
class_docstr_tok: ["Dict-like","container","for","Extension","fields","on","proto","instances",".","Note","that","in","all","cases","we","expect","extension","handles","to","be","FieldDescriptors","."]
code: def __eq__(self, other):
      if not isinstance(other, self.__class__):
          return False
  
      my_fields = self._extended_message.ListFields()
      other_fields = other._extended_message.ListFields()
  
      # Get rid of non-extension fields.
      my_fields = [field for field in my_fields if field.is_extension]
      other_fields = [
          field for field in other_fields if field.is_extension
      ]
  
      return my_fields == other_fields
  
file_path: catboost/contrib/python/protobuf/py2/google/protobuf/internal/extension_dict.py
imports: from google.protobuf.internal import type_checkers
  from google.protobuf.descriptor import FieldDescriptor
label_desc: Use image node_id 3 for calling the _ExtensionDict obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown, False