5 Nov
2012
5 Nov
'12
2:32 a.m.
On 5 Nov, 2012, at 8:31, anatoly techtonik
From http://bugs.python.org/issue16410 Subj?
Aren't there any modules in stdlib that access system API through ctypes?
uuid uses ctypes to access platform APIs.
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)
That's not not quite true, python code that uses ctypes can still cause buffer overflows and the like when you aren't careful, and adds new failure modes (such as incorrect specification of a C function prototype in the Python code that calls that C function) Ronald