Guido van Rossum <guido <at> python.org> writes: > > On Thu, Apr 2, 2009 at 6:22 AM, Jim Fulton <jim <at> zope.com> wrote: > > The original use case for CObjects was to export an API from a module, in > > which case, you'd be importing the API from the module. > > I consider this the *only* use case. What other use cases are there?
I don't know if it is good style, but I could imagine it being used to accumulate non-PyObject data in a Python container (e.g. a list), without too much overhead. It is used in getargs.c to manage a list of "destructors" of temporarily created data for when a call to PyArg_Parse* fails. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com