[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Modules shamodule.c,2.15,2.16

Fred L. Drake, Jr. fdrake@acm.org
Fri, 2 Nov 2001 17:05:30 -0500


Andrew Kuchling writes:
 > On Fri, Nov 02, 2001 at 02:04:19PM -0800, Fred L. Drake wrote:
 > >Simplfy the insint() macro to use PyModule_AddIntConstant().
 > 
 > Should this clean-up be done more generally?

  I'm not sure that "should" is the right term, but it has the
advantage that it helps divorce the extension code from the
implementation of modules, and should generally produced smaller
compiled code without any drawbacks.
  I wouldn't object, for what that's worth.  I'd certainly encourage
it being done when an extension is being changed anyway.


  -Fred

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