[XML-SIG] [Q] xml.utils.boolean C API

Fred L. Drake, Jr. fdrake@acm.org
Tue, 10 Sep 2002 15:10:09 -0400


The C API to the boolean module, expressed in extensions/boolean.h,
does not appear to be used.  It certainly can't be used as-is when the
module is built to be dynamically loaded.  The boolean_new() function
it references is not present in boolean.c at all.

Is there any reason this header is used, or can the needed information
simply be merged into the implementation?

The implementation also uses DL_EXPORT for a few things that should be
static, and almost nobody outside the Python core needs to use the
tp_print slot; the use made by this code is certainly avoidable in
efficient ways.

Uche, Mike, et al.:  any objection to a little cleanup here?

Thanks!


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation