[Python-Dev] Re: optimizing non-local object access

Fred L. Drake, Jr. fdrake@acm.org
Thu, 9 Aug 2001 18:58:07 -0400 (EDT)

Jeremy Hylton writes:
 > that has come up.  Code that expects module's to have a real
 > dictionary will break -- both in Python where it is probably quite
 > rare and at the C level where some API calls require real dicts.  The
 > __dict__ object will implement the mapping protocol.  It just won't be
 > a dict.

  This would certainly break many of the module initialization
functions.  Sounds like everyone should consider using PyModule_Add*()


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