Naming Conventions

Martin von Loewis loewis at
Thu Nov 9 22:39:27 CET 2000

"Alex Martelli" <aleaxit at> writes:

> It would be interesting to hear from somebody who does know for
> sure, of course.

I believe the real reason is that xml.parsers.expat exposes the API of
the expat module. It is common to wrap C functions in a 1:1 fashion,
in which case it is common to use the exact spelling of the functions
as it is in C. Since expat has a XML_ParserCreate function,
xml.parses.expat also has a ParserCreate function (it is also common
to drop prefixes that are inserted for C namespace protection).

In any case, I'd recommend to use the SAX API instead of the bare
expat API, which does follow the conventions.


More information about the Python-list mailing list