Reid Kleckner <rnk at mit.edu> added the comment: I think you used 'struct timeval *' in the function definition instead of '_PyTimeVal *'. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue9079> _______________________________________