[Python-Dev] ctypes is not an acceptable implementation strategy for modules in the standard library?

anatoly techtonik techtonik at gmail.com
Mon Nov 5 08:31:26 CET 2012


>From http://bugs.python.org/issue16410
Subj?

Aren't there any modules in stdlib that access system API through ctypes?

My arguments for ctypes:
1. doesn't require compilation
2. easier to maintain (no C/toolchain knowledge/ownership needed)
3. pure Python is impossible to exploit (unlike pure C)
4. eating your own dogfood helps to make modules complete and notice
such silly/critical/timewasting/drivesmemad errors as
http://bugs.python.org/issue16376 a few years earlier

Maybe it could even help to make ctypes faster (through some caching mechanizm).
--
anatoly t.


More information about the Python-Dev mailing list