[pywin32-bugs] [ pywin32-Bugs-1655517 ] PeekNamedPipe returning "Invalid Handle"
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2007-02-08 20:40:37
|
Bugs item #1655517, was opened at 2007-02-08 13:40 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1655517&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: joe_bob (some_guy_coding) Assigned to: Nobody/Anonymous (nobody) Summary: PeekNamedPipe returning "Invalid Handle" Initial Comment: Using the following program: import win32api import win32pipe if __name__ == "__main__": pipe = win32api.GetStdHandle(win32api.STD_INPUT_HANDLE) buffer, bytesToRead, result = win32pipe.PeekNamedPipe(pipe, 1) on a Windows XP Professional machine. Running Python 2.5 and build 210 of the win32all installer yields this error message: Traceback (most recent call last): File "in.py", line 6, in <module> buffer, bytesToRead, result = win32pipe.PeekNamedPipe(pipe, 1) pywintypes.error: (6, 'PeekNamedPipe', 'The handle is invalid.') Is this expected? If it is, how would I go about querying the standard input to see if there is any data waiting? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1655517&group_id=78018 |