Markdown Format | JSON API | MCP Server Tool
Help on built-in module pyexpat: NAME pyexpat - Python wrapper for Expat parser. SUBMODULES errors model CLASSES builtins.Exception(builtins.BaseException) xml.parsers.expat.ExpatError builtins.object xmlparser class ExpatError(builtins.Exception) | Method resolution order: | ExpatError | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args XMLParserType = class xmlparser(builtins.object) | XML parser | | Methods defined here: | | ExternalEntityParserCreate(...) | Create a parser for parsing an external entity based on the information passed to the ExternalEntityRefHandler. | | GetBase(self, /) | Return base URL string for the parser. | | GetInputContext(self, /) | Return the untranslated text of the input that caused the current event. | | If the event was generated by a large amount of text (such as a start tag | for an element with many attributes), not all of the text may be available. | | Parse(self, data, isfinal=False, /) | Parse XML data. | | `isfinal' should be true at end of input. | | ParseFile(self, file, /) | Parse XML data from file-like object. | | SetBase(self, base, /) | Set the base URL for the parser. | | SetParamEntityParsing(self, flag, /) | Controls parsing of parameter entities (including the external DTD subset). | | Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER, | XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and | XML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag | was successful. | | UseForeignDTD(self, flag=True, /) | Allows the application to provide an artificial external subset if one is not specified as part of the document instance. | | This readily allows the use of a 'default' document type controlled by the | application, while still getting the advantage of providing document type | information to the parser. 'flag' defaults to True if not provided. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | AttlistDeclHandler | | CharacterDataHandler | | CommentHandler | | CurrentByteIndex | | CurrentColumnNumber | | CurrentLineNumber | | DefaultHandler | | DefaultHandlerExpand | | ElementDeclHandler | | EndCdataSectionHandler | | EndDoctypeDeclHandler | | EndElementHandler | | EndNamespaceDeclHandler | | EntityDeclHandler | | ErrorByteIndex | | ErrorCode | | ErrorColumnNumber | | ErrorLineNumber | | ExternalEntityRefHandler | | NotStandaloneHandler | | NotationDeclHandler | | ProcessingInstructionHandler | | SkippedEntityHandler | | StartCdataSectionHandler | | StartDoctypeDeclHandler | | StartElementHandler | | StartNamespaceDeclHandler | | UnparsedEntityDeclHandler | | XmlDeclHandler | | buffer_size | | buffer_text | | buffer_used | | intern | | namespace_prefixes | | ordered_attributes | | specified_attributes error = class ExpatError(builtins.Exception) | Method resolution order: | ExpatError | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args FUNCTIONS ErrorString(code, /) Returns string error for given number. ParserCreate(...) Return a new XML parser object. DATA EXPAT_VERSION = 'expat_2.4.7' XML_PARAM_ENTITY_PARSING_ALWAYS = 2 XML_PARAM_ENTITY_PARSING_NEVER = 0 XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE = 1 expat_CAPI = <capsule object "pyexpat.expat_CAPI"> features = [('sizeof(XML_Char)', 1), ('sizeof(XML_LChar)', 1), ('XML_D... native_encoding = 'UTF-8' version_info = (2, 4, 7) FILE (built-in)
Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:15 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)