[XML-SIG] location of the PyXML package with python 2.0

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue, 5 Dec 2000 00:04:01 +0100


> Quite a while ago, there was a discussion on how PyXML could avoid a
> clash with the build in xml package in python 2.0 using some deep
> import voodoo processing. I cannot recall what the outcome of the
> discussion was.

The voodoo magic was applied, "import xml.something" will import PyXML
if installed, and Python 2.0 xml otherwise. See Python's
xml/__init__.py if you want to know how this exactly works - there
isn't much magic behind it, really.

Regards,
Martin