[Python-Dev] Let's update CObject API so it is safe and regular! (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 3 03🔞50 CEST 2009
- Previous message: [Python-Dev] Let's update CObject API so it is safe and regular!
- Next message: [Python-Dev] bdb.py trace C implementation?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Let's update CObject API so it is safe and regular!
- Next message: [Python-Dev] bdb.py trace C implementation?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]