python / cpython

The Python programming language
https://www.python.org
Other
63.52k stars 30.43k forks source link

no handler base classes in xml.sax #42764

Closed cfd5f668-46e9-4ebc-ac95-ab6c79eaf8a1 closed 18 years ago

cfd5f668-46e9-4ebc-ac95-ab6c79eaf8a1 commented 18 years ago
BPO 1397205
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = None closed_at = created_at = labels = ['docs'] title = 'no handler base classes in xml.sax' updated_at = user = 'https://bugs.python.org/abgrover' ``` bugs.python.org fields: ```python activity = actor = 'georg.brandl' assignee = 'none' closed = True closed_date = None closer = None components = ['Documentation'] creation = creator = 'abgrover' dependencies = [] files = [] hgrepos = [] issue_num = 1397205 keywords = [] message_count = 3.0 messages = ['27249', '27250', '27251'] nosy_count = 3.0 nosy_names = ['georg.brandl', 'pterk', 'abgrover'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue1397205' versions = ['Python 2.4'] ```

cfd5f668-46e9-4ebc-ac95-ab6c79eaf8a1 commented 18 years ago

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.

20683f41-0352-41fe-aae1-0e19a23431f9 commented 18 years ago

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']
birkenfeld commented 18 years ago

Logged In: YES user_id=1188172

Thanks, corrected the reference in rev. 42007/42008.