[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib/xml/sax __init__.py,NONE,1.1

Greg Stein gstein@lyra.org
Sat, 1 Jul 2000 03:29:59 -0700


Do you really want to import that many items into the xml.sax module? IMO,
be specific on what is imported into xml.sax for *convenience*. Don't just
import the world.

Also note that the import for SAXParseException is redundant.

Cheers,
-g

On Thu, Jun 29, 2000 at 12:33:45PM -0700, Fred L. Drake wrote:
> Update of /cvsroot/python/python/dist/src/Lib/xml/sax
> In directory slayer.i.sourceforge.net:/tmp/cvs-serv5045
> 
> Added Files:
> 	__init__.py 
> Log Message:
> 
> Package docstring and initialization.
> 
> 
> --- NEW FILE ---
> """Simple API for XML (SAX) implementation for Python.
> 
> This module provides an implementation of the SAX 2 interface;
> information about the Java version of the interface can be found at
> http://www.megginson.com/SAX/.  The Python version of the interface is
> documented at <...>.
> 
> This package contains the following modules:
> 
> saxutils -- Implementation of the convenience functions normally used
>             to work with SAX.
> 
> saxlib -- Implementation of the shared SAX 2 classes.
> 
> drv_pyexpat -- Driver that allows use of the Expat parser with the classes
>                defined in saxlib.
> 
> """
> 
> from handler import *
> from expatreader import *
> from _exceptions import *
> from saxutils import *
> from _exceptions import SAXParseException
> import xmlreader
> 
> 
> _______________________________________________
> Python-checkins mailing list
> Python-checkins@python.org
> http://www.python.org/mailman/listinfo/python-checkins

-- 
Greg Stein, http://www.lyra.org/