This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: no handler base classes in xml.sax
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: abgrover, georg.brandl, pterk
Priority: normal Keywords:

Created on 2006-01-04 20:34 by abgrover, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg27249 - (view) Author: Alan G (abgrover) Date: 2006-01-04 20:34
The 2.4.1 Documentation for xml.sax.handler states:

Handler implementations should inherit from the base
classes provided in the module xml.sax, so that all
methods get default implementations.

However, there are no handler base classes in xml.sax.
msg27250 - (view) Author: Peter van Kampen (pterk) Date: 2006-01-10 21:33
Logged In: YES 
user_id=174455

You need to look at xml.sax.handler.

See (bottom of)
http://www.python.org/doc/2.4.2/lib/module-xml.sax.html (See
also xml.sax.handler)

There's also a hint in xml.sax.__doc__

Python 2.4.1 (#2, May  5 2005, 11:32:06)
[GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import xml.sax.handler
>>> dir(xml.sax.handler)
['ContentHandler', 'DTDHandler', 'EntityResolver',
'ErrorHandler', '__builtins__', '__doc__', '__file__',
'__name__', 'all_features', 'all_properties',
'feature_external_ges', 'feature_external_pes',
'feature_namespace_prefixes', 'feature_namespaces',
'feature_string_interning', 'feature_validation',
'property_declaration_handler', 'property_dom_node',
'property_encoding', 'property_interning_dict',
'property_lexical_handler', 'property_xml_string', 'version']
msg27251 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-01-10 21:38
Logged In: YES 
user_id=1188172

Thanks, corrected the reference in rev. 42007/42008.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42764
2006-01-04 20:34:01abgrovercreate