[stdlib-sig] html package idea

M.-A. Lemburg mal at egenix.com
Wed Feb 20 11:59:43 CET 2008


On 2008-02-20 11:15, Brett Cannon wrote:
> On Feb 20, 2008 1:59 AM, Christian Heimes <christian at cheimes.de> wrote:
>> Brett Cannon wrote:
>>> Here is an idea for an html package:
>>>
>>> htmlentitydefs -> html.entities
>>> htmllib -> html.tools
>>> HTMLParser -> html.parser
>>>
>>> What do people think?
>> +1
>>
>> What about markupbase and sgml?
>>
> 
> markupbase has no public API and has already been renamed _markupbase.
> 
> As for sgmllib, since it only exists for htmllib, I say it should be
> merged into html.tools since there is no naming conflicts.

-1. SGML is a much more general markup language than HTML.

It's true that only htmllib does use sgmllib in the std lib,
but there are applications out there that rely on sgmllib
for the SGML part, e.g. ones implementing the DocBook tool
chain.

> But I just realized htmllib itself is a parser for html. So naming it
> html.tools seems wrong.
> 
> Perhaps it should be:
> 
> htmlentitydefs -> html.entities
> htmllib -> html.parser
> sgmllib -> html.parser
> HTMLParser -> html.xparser
> 
> That way the two different parsers are both delineated as parsers, but
> the fact that HTMLParser handles XHTML is covered.
> 
> I will also ask the web-sig if both parsers are really needed.
> 
> -Brett
> _______________________________________________
> stdlib-sig mailing list
> stdlib-sig at python.org
> http://mail.python.org/mailman/listinfo/stdlib-sig

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Feb 20 2008)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611


More information about the stdlib-sig mailing list