[Python-Dev] are CObjects inherently unsafe? (original) (raw)

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Dec 4 19:56:43 EST 2003


Michael Hudson <mwh at python.net>:

It seems to me that any time there are more than two CObjects around we have a good chance of causing mischief:

Indeed, CObjects seem fundamentally dangerous to me, unless the modules which create and use them are extremely careful to make sure they can tell whether they've got the right kind of CObject.

And I suspect that many modules which make use of CObjects aren't that careful. CStringIO obviously isn't...

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+



More information about the Python-Dev mailing list