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

Jim Fulton jim at zope.com
Thu Apr 2 15:16:29 CEST 2009

On Apr 1, 2009, at 11:51 PM, Guido van Rossum wrote:
>> Note also this cheap exported-vtable hack isn't the
>> only use of CObjects; for example _ctypes uses them to wrap plenty of
>> one-off objects which are never set as attributes of the _ctypes  
>> module.
>>  We'd like a solution that enforces some safety for those too,  
>> without
>> creating spurious module attributes.
> Why would you care about safety for ctypes? It's about as unsafe as it
> gets anyway. Coredump emptor I say.

At which point, I wonder why we worry so much about someone  
intentionally breaking a CObject as in Larry's example.


Jim Fulton
Zope Corporation

More information about the Python-Dev mailing list