[Python-bugs-list] [Bug #125297] select([], [], [], 1) on Windows raises exception
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 11 Dec 2000 12:34:24 -0800
Bug #125297, was updated on 2000-Dec-10 23:17
Here is a current snapshot of the bug.
Project: Python
Category: Documentation
Status: Closed
Resolution: Fixed
Bug Group: Platform-specific
Priority: 5
Submitted by: jrosdahl
Assigned to : fdrake
Summary: select([], [], [], 1) on Windows raises exception
Details: The documentation for the select module says that "empty lists are allowed" for the select() call, but Python 2.0 on Windows 95 has troubles with that:
Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import select
>>> select.select([], [], [], 1)
Traceback (innermost last):
File "<pyshell#1>", line 1, in ?
select.select([], [], [], 1)
error: (0, 'Error')
Real bug or documentation bug?
Regards,
Joel
Follow-Ups:
Date: 2000-Dec-11 12:34
By: tim_one
Comment:
Note that this is limitation #2 listed in
http://support.microsoft.com/support/kb/articles/Q147/7/14.asp
"""
2. Calling select() with three empty FD_SETs and a valid TIMEOUT structure as a delay function.
Reason: The select() function is intended as a network function, not a general purpose timer.
Workaround: Use a legitimate system timer service.
"""
-------------------------------------------------------
Date: 2000-Dec-11 07:51
By: fdrake
Comment:
Added clarification to the documentation in Doc/lib/libselect.tex revision 1.17.
-------------------------------------------------------
Date: 2000-Dec-11 06:34
By: gvanrossum
Comment:
Confirmed -- empty lists are *not* allowed on Windows.
I suggest changing the documentation saying: "Whether three empty lists are allowed or not is platform dependent; it is known to work on Unix but not on Windows."
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=125297&group_id=5470