[ctypes-commit] ctypes ChangeLog,1.54,1.55 ANNOUNCE,1.10,1.11
Brought to you by:
theller
|
From: Thomas H. <th...@us...> - 2004-09-01 12:45:47
|
Update of /cvsroot/ctypes/ctypes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7106 Modified Files: ChangeLog ANNOUNCE Log Message: Record changes. Index: ANNOUNCE =================================================================== RCS file: /cvsroot/ctypes/ctypes/ANNOUNCE,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ANNOUNCE 27 Aug 2004 17:10:22 -0000 1.10 --- ANNOUNCE 1 Sep 2004 12:45:36 -0000 1.11 *************** *** 28,31 **** --- 28,42 ---- ctypes changes + ctypes now allows calling Python C api functions. The pythonapi + symbol should be used to access these functions, this will + automatically use the correct calling convention and exception + handling. The py_object type is the ctypes variant of 'PyObject *'. + This feature should also work if you are using a static python + build. + + It is now possible to call cdecl functions with more arguments + than the length of the argtypes sequence specifies - this allows + to provide functions like sprintf() with a proper prototype. + It is now possible to create strings or unicode strings if you have the integer address by calling c_char_p(address) or *************** *** 53,62 **** returns the alignment requirements in bytes of a type or instance. - experimental changes - - It is now possible to call Python API functions with ctypes. This - is an experimental feature and will probably change. Please don't - use it yet in production code, and watch the ctypes-users mailing - list. ctypes.com changes --- 64,67 ---- Index: ChangeLog =================================================================== RCS file: /cvsroot/ctypes/ctypes/ChangeLog,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** ChangeLog 27 Aug 2004 17:10:22 -0000 1.54 --- ChangeLog 1 Sep 2004 12:45:35 -0000 1.55 *************** *** 1,2 **** --- 1,17 ---- + 2004-09-01 Thomas Heller <th...@py...> + + * (Message): A pythonapi object has been added to the ctypes + package. On windows, it is bound to the python dll, on other + systems it is bound to the current process. + + It allows to access C Python api functions. + + py_object is the ctypes type corresponding to the C 'PyObject *' + type. + + * ctypes: It is now possible to call cdecl functions with more + arguments than the length of the argtypes attribute, even if this + is set. This allows specify argtypes for functions like sprintf(). + 2004-08-27 Thomas Heller <th...@py...> |