[ctypes-commit] ctypes/source _ctypes.c,1.207,1.208
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-02-16 20:53:17
|
Update of /cvsroot/ctypes/ctypes/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9105 Modified Files: _ctypes.c Log Message: Performance improvement. Index: _ctypes.c =================================================================== RCS file: /cvsroot/ctypes/ctypes/source/_ctypes.c,v retrieving revision 1.207 retrieving revision 1.208 diff -C2 -d -r1.207 -r1.208 *** _ctypes.c 16 Feb 2005 20:41:53 -0000 1.207 --- _ctypes.c 16 Feb 2005 20:53:05 -0000 1.208 *************** *** 2710,2713 **** --- 2710,2715 ---- return -1; } + if (PyTuple_GET_SIZE(args) == 0) + return 0; /* no initializers: nothing to do */ fields = PyObject_GetAttrString(self, "_fields_"); if (!fields) { |