On 8/8/06, Terry Reedy <[EMAIL PROTECTED]> wrote: > > I would suggest that PyPy's use of ctypes, coupled with the inclusion of > > ctypes in the Python 2.5 stdlib, means that ctypes could reasonably be > > considered a defacto standard for a C FFI in Python at this point. > > Intriguing idea. I know that the Pygame folks, for example, are > experimenting with rewrapping the SDL (Simple Directmedia Library, the core > of Pygame) in ctypes.
Isn't a problem with ctypes that such extensions can no longer guarantee "no segfaults"? This pretty much completely rules them out for use in sandboxes such as what Brett Cannon is currently working on. With hand-written extensions at least you can audit them to decide whether they are safe enough. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
