[Python-Dev] Let's update CObject API so it is safe and regular!

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 3 03:18:50 CEST 2009


Jim Fulton 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.  The presence 
> in the module indicates the type.

Sure, but it can't hurt to have an additional sanity
check.

Also, there are wider uses for CObjects than this.
I see it as a quick way of creating a wrapper when
you don't want to go to the trouble of a full-blown
extension type. A small amount of metadata would
make CObjects much more useful.

-- 
Greg




More information about the Python-Dev mailing list