Re: threading.Event file descriptor

2005-04-03 Thread elbertlev
//And there's no handle at all? There is one (check thread_nt.h) you have to "propagate" HANDLE to Pythom level. That's why, you have to change the interpreter. Do not forget, that thread is a build-in module. //I wouldn't want to derive from Event since my goal would be to submit a patch to make

Re: threading.Event file descriptor

2005-04-03 Thread Nicolas Fleury
[EMAIL PROTECTED] wrote: //And there's no handle at all? There is one (check thread_nt.h) you have to "propagate" HANDLE to Pythom level. That's why, you have to change the interpreter. Do not forget, that thread is a build-in module. Sounds fine with me. A fileno (or whatever) function can be add

Re: threading.Event file descriptor

2005-04-03 Thread Nicolas Fleury
[EMAIL PROTECTED] wrote: There is no event handle used in Event object (for NT at least). Do not know about Linux... And there's no handle at all? It's not important if it's not an event handle as long as it is an handle usable with WaitForMultipleObjects. Also, I don't understand how it will be

Re: threading.Event file descriptor

2005-04-03 Thread elbertlev
Nicolas Fleury wrote: > Hi, > Is there any way to get the file descriptor on Unix or handle on Windows > associated internally with a threading.Event object? So that it can be > used in a call to select or WaitForMultipleObjects. > Thx and regards, > Nicolas Good idea! But... There is no event

threading.Event file descriptor

2005-04-02 Thread Nicolas Fleury
Hi, Is there any way to get the file descriptor on Unix or handle on Windows associated internally with a threading.Event object? So that it can be used in a call to select or WaitForMultipleObjects. Thx and regards, Nicolas -- http://mail.python.org/mailman/listinfo/python-list