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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4