class_docstr: SAX driver for the pyexpat C module.
class_docstr_tok: ["SAX","driver","for","the","pyexpat","C","module","."]
code: def reset(self):
      if self._namespaces:
          self._parser = expat.ParserCreate(
              self._source.getEncoding(), " ", intern=self._interning
          )
          self._parser.namespace_prefixes = 1
          self._parser.StartElementHandler = self.start_element_ns
          self._parser.EndElementHandler = self.end_element_ns
      else:
          self._parser = expat.ParserCreate(
              self._source.getEncoding(), intern=self._interning
          )
          self._parser.StartElementHandler = self.start_element
          self._parser.EndElementHandler = self.end_element
  
      self._reset_cont_handler()
      self._parser.UnparsedEntityDeclHandler = self.unparsed_entity_decl
      self._parser.NotationDeclHandler = self.notation_decl
      self._parser.StartNamespaceDeclHandler = self.start_namespace_decl
      self._parser.EndNamespaceDeclHandler = self.end_namespace_decl
  
      self._decl_handler_prop = None
      if self._lex_handler_prop:
          self._reset_lex_handler_prop()
      #         self._parser.DefaultHandler =
      #         self._parser.DefaultHandlerExpand =
      #         self._parser.NotStandaloneHandler =
      self._parser.ExternalEntityRefHandler = self.external_entity_ref
      try:
          self._parser.SkippedEntityHandler = (
              self.skipped_entity_handler
          )
      except AttributeError:
          # This pyexpat does not support SkippedEntity
          pass
      self._parser.SetParamEntityParsing(
          expat.XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE
      )
  
      self._parsing = False
      self._entity_stack = []
  
imports: from xml.sax._exceptions import *
  from xml.sax.handler import feature_validation, feature_namespaces
  from xml.sax.handler import feature_namespace_prefixes
  from xml.sax.handler import feature_external_ges, feature_external_pes
  from xml.sax.handler import feature_string_interning
  from xml.sax.handler import property_xml_string, property_interning_dict
  from xml.sax import xmlreader, saxutils, handler
label_desc: Use image node_id 14 for calling the ExpatParser obj's underlying member method code with example usage: obj.reset() without return types