[ python-Bugs-1397205 ] no handler base classes in xml.sax

SourceForge.net noreply at sourceforge.net
Tue Jan 10 22:33:27 CET 2006


Bugs item #1397205, was opened at 2006-01-04 21:34
Message generated for change (Comment added) made by pterk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1397205&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Alan G (abgrover)
Assigned to: Nobody/Anonymous (nobody)
Summary: no handler base classes in xml.sax

Initial Comment:
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.

----------------------------------------------------------------------

Comment By: Peter van Kampen (pterk)
Date: 2006-01-10 22:33

Message:
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']


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1397205&group_id=5470


More information about the Python-bugs-list mailing list