STINNER Victor <victor.stin...@gmail.com> added the comment:

Here is a first step: add _PyTime_ObjectToTimespec() to pytime.h and use it for 
signal.sigtimedwait().

signal.sigtimedwait(sigwait, (timeout_sec, timeout_nsec)) becomes 
signal.sigtimedwait(sigwait, timeout).

I chose pytime.h instead of timefuncs.h because I plan to use 
_PyTime_ObjectToTimespec() in the posix module. I don't want to have a copy of 
this function in each module: timefuncs.h requires to compile the module with 
_time.c.

----------
keywords: +patch
Added file: http://bugs.python.org/file24586/pytime.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13964>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to